Skip to content

Commit dbbf086

Browse files
committed
Add test_complete_symbol
1 parent d3508b5 commit dbbf086

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/irb/test_completion.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,11 @@ def test_complete_numeric
2525
assert_include(IRB::InputCompletor.retrieve_completion_data("1r.positi", bind: binding), "1r.positive?")
2626
assert_empty(IRB::InputCompletor.retrieve_completion_data("1i.positi", bind: binding))
2727
end
28+
29+
def test_complete_symbol
30+
:aiueo
31+
assert_include(IRB::InputCompletor.retrieve_completion_data(":a", bind: binding), ":aiueo")
32+
assert_empty(IRB::InputCompletor.retrieve_completion_data(":abcdefg", bind: binding))
33+
end
2834
end
2935
end

0 commit comments

Comments
 (0)