diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-08-18 23:32:46 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-08-18 23:32:46 +0900 |
commit | bed6b7206a64eeca5b521e02799da4055d9f5e55 (patch) | |
tree | 2c3bada4d37b1502844a49665cd2faa4e0ebe682 /test | |
parent | 6767a9ef2b0e4b19e58f7c148f6d176af73e55fc (diff) | |
download | ruby-bed6b7206a64eeca5b521e02799da4055d9f5e55.tar.gz |
test/irb/test_history.rb: prevent warnings
```
/home/chkbuild/chkbuild/tmp/build/20200818T123003Z/ruby/test/irb/test_history.rb:16:
warning: assigned but unused variable - result_output
/home/chkbuild/chkbuild/tmp/build/20200818T123003Z/ruby/test/irb/test_history.rb:34:
warning: assigned but unused variable - result_output
/home/chkbuild/chkbuild/tmp/build/20200818T123003Z/ruby/test/irb/test_history.rb:57:
warning: assigned but unused variable - result_output
/home/chkbuild/chkbuild/tmp/build/20200818T123003Z/ruby/test/irb/test_history.rb:80:
warning: assigned but unused variable - result_output
```
Diffstat (limited to 'test')
-rw-r--r-- | test/irb/test_history.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/irb/test_history.rb b/test/irb/test_history.rb index 430661cdfd..0b3620fe32 100644 --- a/test/irb/test_history.rb +++ b/test/irb/test_history.rb @@ -13,7 +13,7 @@ module TestIRB end def test_history_save_1 - result_output, result_history_file = launch_irb_with_irbrc_and_irb_history(<<~IRBRC, <<~IRB_HISTORY) do |stdin| + _result_output, result_history_file = launch_irb_with_irbrc_and_irb_history(<<~IRBRC, <<~IRB_HISTORY) do |stdin| IRB.conf[:USE_READLINE] = true IRB.conf[:SAVE_HISTORY] = 1 IRBRC @@ -31,7 +31,7 @@ module TestIRB end def test_history_save_100 - result_output, result_history_file = launch_irb_with_irbrc_and_irb_history(<<~IRBRC, <<~IRB_HISTORY) do |stdin| + _result_output, result_history_file = launch_irb_with_irbrc_and_irb_history(<<~IRBRC, <<~IRB_HISTORY) do |stdin| IRB.conf[:USE_READLINE] = true IRB.conf[:SAVE_HISTORY] = 100 IRBRC @@ -54,7 +54,7 @@ module TestIRB end def test_history_save_bignum - result_output, result_history_file = launch_irb_with_irbrc_and_irb_history(<<~IRBRC, <<~IRB_HISTORY) do |stdin| + _result_output, result_history_file = launch_irb_with_irbrc_and_irb_history(<<~IRBRC, <<~IRB_HISTORY) do |stdin| IRB.conf[:USE_READLINE] = true IRB.conf[:SAVE_HISTORY] = 10 ** 19 IRBRC @@ -77,7 +77,7 @@ module TestIRB end def test_history_save_minus_as_infinity - result_output, result_history_file = launch_irb_with_irbrc_and_irb_history(<<~IRBRC, <<~IRB_HISTORY) do |stdin| + _result_output, result_history_file = launch_irb_with_irbrc_and_irb_history(<<~IRBRC, <<~IRB_HISTORY) do |stdin| IRB.conf[:USE_READLINE] = true IRB.conf[:SAVE_HISTORY] = -1 # infinity IRBRC |