Skip to content

Commit f7d6b24

Browse files
committed
test_yamatanooroti: avoid a forced line break behavior
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.
1 parent ac8d7f3 commit f7d6b24

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/reline/yamatanooroti/test_rendering.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,11 +1256,9 @@ def test_dialog_with_fullwidth_chars
12561256
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)
12571257
omit "codepage 932 not supported" if !codepage_success?
12581258
end
1259+
write("\C-l")
12591260
6.times{ write('j') }
12601261
assert_screen(<<~'EOC')
1261-
Multi
1262-
line
1263-
REPL.
12641262
>
12651263
オー
12661264
グ言▄

0 commit comments

Comments
 (0)