summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-09-11 04:30:29 +0900
committergit <svn-admin@ruby-lang.org>2021-09-11 04:41:20 +0900
commit3e038ab1c7f0009f753bfada2e18fb6078a92c12 (patch)
treeb6355924089a3b3fc27a654704b8924bf0297a49 /test
parentcfbf2bde4002821d12047b2aba0010739aaf925e (diff)
[ruby/irb] Ignore invalid 3 colons in completion
https://github.com/ruby/irb/commit/5e29e3e39c
Diffstat (limited to 'test')
-rw-r--r--test/irb/test_completion.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb
index 1ae1b7a0b9..f00eda0058 100644
--- a/test/irb/test_completion.rb
+++ b/test/irb/test_completion.rb
@@ -32,6 +32,11 @@ module TestIRB
assert_empty(IRB::InputCompletor.retrieve_completion_data(":irb_unknown_symbol_abcdefg", bind: binding))
end
+ def test_complete_invalid_three_colons
+ assert_empty(IRB::InputCompletor.retrieve_completion_data(":::A", bind: binding))
+ assert_empty(IRB::InputCompletor.retrieve_completion_data(":::", bind: binding))
+ end
+
def test_complete_symbol_failure
assert_nil(IRB::InputCompletor::PerfectMatchedProc.(":aiueo", bind: binding))
end