ruby-changes:60007
From: aycabta <ko1@a...>
Date: Wed, 12 Feb 2020 13:15:04 +0900 (JST)
Subject: [ruby-changes:60007] 3af3431c2c (master): [ruby/irb] Add test_complete_symbol
https://git.ruby-lang.org/ruby.git/commit/?id=3af3431c2c From 3af3431c2c145134996e66f3d8d9ade8ad81bde0 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Mon, 10 Feb 2020 23:15:13 +0900 Subject: [ruby/irb] Add test_complete_symbol https://github.com/ruby/irb/commit/dbbf086c1f diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb index 52bbc7b..e5a1f4d 100644 --- a/test/irb/test_completion.rb +++ b/test/irb/test_completion.rb @@ -25,5 +25,11 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_completion.rb#L25 assert_include(IRB::InputCompletor.retrieve_completion_data("1r.positi", bind: binding), "1r.positive?") assert_empty(IRB::InputCompletor.retrieve_completion_data("1i.positi", bind: binding)) end + + def test_complete_symbol + :aiueo + assert_include(IRB::InputCompletor.retrieve_completion_data(":a", bind: binding), ":aiueo") + assert_empty(IRB::InputCompletor.retrieve_completion_data(":abcdefg", bind: binding)) + end end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/