mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Add a test for when completion target is wrapped
25a94d70c3
This commit is contained in:
parent
5af602e4d4
commit
8e6ed5d75b
1 changed files with 15 additions and 0 deletions
|
@ -894,6 +894,21 @@ begin
|
|||
EOC
|
||||
end
|
||||
|
||||
def test_autocomplete_target_is_wrapped
|
||||
start_terminal(20, 20, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete}, startup_message: 'Multiline REPL.')
|
||||
write(' ')
|
||||
write('S')
|
||||
write('t')
|
||||
write('r')
|
||||
close
|
||||
assert_screen(<<~'EOC')
|
||||
Multiline REPL.
|
||||
prompt> St
|
||||
r String
|
||||
Struct
|
||||
EOC
|
||||
end
|
||||
|
||||
def test_simple_dialog_with_scroll_key
|
||||
start_terminal(20, 50, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --dialog long,scrollkey}, startup_message: 'Multiline REPL.')
|
||||
write('a')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue