ruby-changes:67687
From: aycabta <ko1@a...>
Date: Fri, 10 Sep 2021 09:05:59 +0900 (JST)
Subject: [ruby-changes:67687] 9066496aa3 (master): [ruby/reline] Add a test that autocomplete dialog doesn't crash when empty
https://git.ruby-lang.org/ruby.git/commit/?id=9066496aa3 From 9066496aa33b0b74f664cfddfbc9fc307225acb6 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Fri, 10 Sep 2021 07:57:53 +0900 Subject: [ruby/reline] Add a test that autocomplete dialog doesn't crash when empty https://github.com/ruby/reline/commit/9c0080c27f --- test/reline/yamatanooroti/test_rendering.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb index 06d59c2..29a5268 100644 --- a/test/reline/yamatanooroti/test_rendering.rb +++ b/test/reline/yamatanooroti/test_rendering.rb @@ -924,6 +924,16 @@ begin https://github.com/ruby/ruby/blob/trunk/test/reline/yamatanooroti/test_rendering.rb#L924 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") -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/