diff options
Diffstat (limited to 'test/reline/yamatanooroti')
-rwxr-xr-x | test/reline/yamatanooroti/multiline_repl | 6 | ||||
-rw-r--r-- | test/reline/yamatanooroti/test_rendering.rb | 8 |
2 files changed, 5 insertions, 9 deletions
diff --git a/test/reline/yamatanooroti/multiline_repl b/test/reline/yamatanooroti/multiline_repl index 1346a83adb..c944da8a38 100755 --- a/test/reline/yamatanooroti/multiline_repl +++ b/test/reline/yamatanooroti/multiline_repl @@ -74,19 +74,19 @@ opt.on('--dialog VAL') { |v| } opt.on('--complete') { Reline.completion_proc = lambda { |target, preposing = nil, postposing = nil| - %w{String ScriptError SyntaxError Signal} + %w{String ScriptError SyntaxError Signal}.select{ |c| c.start_with?(target) } } } opt.on('--autocomplete') { Reline.autocompletion = true Reline.completion_proc = lambda { |target, preposing = nil, postposing = nil| - %w{String Struct Symbol ScriptError SyntaxError Signal} + %w{String Struct Symbol ScriptError SyntaxError Signal}.select{ |c| c.start_with?(target) } } } opt.on('--autocomplete-long') { Reline.autocompletion = true Reline.completion_proc = lambda { |target, preposing = nil, postposing = nil| - %w{String Struct Symbol StopIteration SystemCallError SystemExit SystemStackError ScriptError SyntaxError Signal SizedQueue Set SecureRandom Socket StringIO StringScanner Shellwords Syslog Singleton SDBM} + %w{String Struct Symbol StopIteration SystemCallError SystemExit SystemStackError ScriptError SyntaxError Signal SizedQueue Set SecureRandom Socket StringIO StringScanner Shellwords Syslog Singleton SDBM}.select{ |c| c.start_with?(target) } } } opt.parse!(ARGV) diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb index c147d1cf99..59fc5111aa 100644 --- a/test/reline/yamatanooroti/test_rendering.rb +++ b/test/reline/yamatanooroti/test_rendering.rb @@ -911,17 +911,13 @@ begin def test_autocomplete start_terminal(20, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete}, startup_message: 'Multiline REPL.') - write("Stri") + write("Str") close assert_screen(<<~'EOC') Multiline REPL. - prompt> Stri + prompt> Str String Struct - Symbol - ScriptError - SyntaxError - Signal EOC end |