diff options
author | aycabta <aycabta@gmail.com> | 2021-09-09 07:22:53 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-10 09:04:30 +0900 |
commit | 44759533786562d0ff5c49147d050ea685e97ea5 (patch) | |
tree | e6e3e76a0a8f48da2d920d581faa6dd8acc68169 /test/reline/yamatanooroti/multiline_repl | |
parent | 7983fb965891330f5c41919b266ada53ab822f12 (diff) |
[ruby/reline] Add a simple test for autocomplete
https://github.com/ruby/reline/commit/11f83b2f4b
Diffstat (limited to 'test/reline/yamatanooroti/multiline_repl')
-rwxr-xr-x | test/reline/yamatanooroti/multiline_repl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/reline/yamatanooroti/multiline_repl b/test/reline/yamatanooroti/multiline_repl index 00d4825ee3..b21ad4bd8c 100755 --- a/test/reline/yamatanooroti/multiline_repl +++ b/test/reline/yamatanooroti/multiline_repl @@ -35,6 +35,12 @@ opt.on('--complete') { %w{String ScriptError SyntaxError Signal} } } +opt.on('--autocomplete') { + Reline.autocompletion = true + Reline.completion_proc = lambda { |target, preposing = nil, postposing = nil| + %w{String Struct Symbol ScriptError SyntaxError Signal} + } +} opt.parse!(ARGV) begin |