mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Add a test that autocomplete dialog doesn't crash when empty
9c0080c27f
This commit is contained in:
parent
8e6ed5d75b
commit
9066496aa3
1 changed files with 10 additions and 0 deletions
|
@ -924,6 +924,16 @@ begin
|
|||
EOC
|
||||
end
|
||||
|
||||
def test_autocomplete_empty
|
||||
start_terminal(20, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete}, startup_message: 'Multiline REPL.')
|
||||
write('Street')
|
||||
close
|
||||
assert_screen(<<~'EOC')
|
||||
Multiline REPL.
|
||||
prompt> Street
|
||||
EOC
|
||||
end
|
||||
|
||||
def test_autocomplete
|
||||
start_terminal(20, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete}, startup_message: 'Multiline REPL.')
|
||||
write("Str")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue