Skip to content

Commit 4f4cf52

Browse files
committed
Add test_complete_symbol
The previous version of the test method used a symbol, ":abcdefg" to complete but longer symbols that can be completed are defined by other test methods of other libs.
1 parent 405a934 commit 4f4cf52

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/irb/test_completion.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ def test_complete_numeric
2626
assert_empty(IRB::InputCompletor.retrieve_completion_data("1i.positi", bind: binding))
2727
end
2828

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(":irb_unknown_symbol_abcdefg", bind: binding))
33+
end
34+
2935
def test_complete_symbol_failure
3036
assert_nil(IRB::InputCompletor::PerfectMatchedProc.(":aiueo", bind: binding))
3137
end

0 commit comments

Comments
 (0)