diff options
author | aycabta <aycabta@gmail.com> | 2021-09-04 05:41:37 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-04 17:48:31 +0900 |
commit | ff372ed74b4cedd8252e589d2b89c59b0bd8d763 (patch) | |
tree | cc77d2220284ad5e759e7c8279676a4ee0036b74 /test | |
parent | 9ac32e87bba3a6d873b92c587a83e78051a83839 (diff) | |
download | ruby-ff372ed74b4cedd8252e589d2b89c59b0bd8d763.tar.gz |
[ruby/irb] Suppress "assigned but unused variable" warning
https://github.com/ruby/irb/commit/a1ddf64c69
Diffstat (limited to 'test')
-rw-r--r-- | test/irb/test_completion.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb index 1fd42999c6..c534301bc6 100644 --- a/test/irb/test_completion.rb +++ b/test/irb/test_completion.rb @@ -86,6 +86,7 @@ module TestIRB def test_complete_variable str_example = '' + str_example.clear # suppress "assigned but unused variable" warning 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") assert_equal(IRB::InputCompletor.retrieve_completion_data("str_example.to_s", bind: binding, doc_namespace: true), "String.to_s") |