Skip to content

Commit

Permalink
Add rerender fullwidth chars under dialog test
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Sep 28, 2022
1 parent 1bd87c9 commit bcf0c59
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/reline/yamatanooroti/test_rendering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,22 @@ def test_autocomplete_rerender_under_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\n aあいうえおかきくけこb\n abあいうえおかきくけこ\C-p\C-p\C-p ")
write('S')
write('t')
close
assert_screen(<<~'EOC')
Multiline REPL.
prompt> def hoge
prompt> St
prompt> Stringえおかきくけこab
prompt> Struct えおかきくけこb
prompt> 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 bcf0c59

Please sign in to comment.