Skip to content

Commit

Permalink
Add dialog rendering test with fullwidth charactors
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed May 1, 2023
1 parent 9d0af91 commit d1efadd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/reline/yamatanooroti/test_rendering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,25 @@ def test_rerender_multiple_dialog
EOC
end

def test_autocomplete_rerender_fullwidth_under_dialog
start_terminal(20, 40, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete}, startup_message: 'Multiline REPL.')
write("def hoge\n\n あいうえおabかきくけこab\n aあいうえおabかきくけこb\n abあいうえおabかきくけこ\C-p\C-p\C-p ")
write('S')
write('t')
write(' ')
write('S')
write('t')
close
assert_screen(<<~'EOC')
Multiline REPL.
prompt> def hoge
prompt> St St
prompt> あいうえおabStringけこab
prompt> aあいうえおaStruct けこb
prompt> abあいうえおabかきくけこ
EOC
end

def test_autocomplete_long_with_scrollbar
start_terminal(20, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete-long}, startup_message: 'Multiline REPL.')
write('S')
Expand Down

0 comments on commit d1efadd

Please sign in to comment.