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 ```
This commit is contained in:
parent
6767a9ef2b
commit
bed6b7206a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user