diff options
author | aycabta <aycabta@gmail.com> | 2021-09-02 21:34:53 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-02 21:39:55 +0900 |
commit | 4e40b7ddb06b4ac806c85dabf2bd094fdd4bd6d0 (patch) | |
tree | 65c88bbe80aa0ef4871a97eff035aefff87adf62 /test | |
parent | f734590f8ec9b9ac938f625eb6dd586039d287db (diff) |
[ruby/irb] Detect the variable class to show doc
https://github.com/ruby/irb/commit/33b9bec954
Diffstat (limited to 'test')
-rw-r--r-- | test/irb/test_completion.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb index ab57762029..260b8a8892 100644 --- a/test/irb/test_completion.rb +++ b/test/irb/test_completion.rb @@ -83,5 +83,11 @@ module TestIRB assert_include candidates, word end end + + def test_complete_variable + str_example = '' + assert_include(IRB::InputCompletor.retrieve_completion_data("str_examp", bind: binding), "str_example") + assert_equal(IRB::InputCompletor.retrieve_completion_data("str_example", bind: binding, doc_namespace: true), "String") + end end end |