mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/irb] Add test_complete_symbol
https://github.com/ruby/irb/commit/dbbf086c1f
This commit is contained in:
parent
985d1b9ec4
commit
3af3431c2c
1 changed files with 6 additions and 0 deletions
|
@ -25,5 +25,11 @@ module TestIRB
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue