Skip to content

Commit

Permalink
test_yamatanooroti: avoid a forced line break behavior
Browse files Browse the repository at this point in the history
Windows console that does not support VT sequence has forced newline output when writing rightmost column of line. This may appear as an additional line break.
Clearing screen to avoid this environment dependent behavior affects to a test result.
  • Loading branch information
YO4 committed Nov 7, 2024
1 parent ac8d7f3 commit f7d6b24
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/reline/yamatanooroti/test_rendering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1256,11 +1256,9 @@ def test_dialog_with_fullwidth_chars
start_terminal(20, 5, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --dialog fullwidth,scrollkey,scrollbar}, startup_message: 'Multiline REPL.', codepage: 932)
omit "codepage 932 not supported" if !codepage_success?
end
write("\C-l")
6.times{ write('j') }
assert_screen(<<~'EOC')
Multi
line
REPL.
>
オー
グ言▄
Expand Down

0 comments on commit f7d6b24

Please sign in to comment.