summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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