diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-30 09:34:41 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-30 11:45:37 +0900 |
commit | 409b0ec4c3c4878c0ba164d1303de67787157808 (patch) | |
tree | 292c5554ee9f81571b760d359ac9513c44da3ee0 /test/ruby/test_flip.rb | |
parent | 84837e6d16cb0e588b1acc2691cb1048b9a89989 (diff) |
Suppress unused variable warnings
Diffstat (limited to 'test/ruby/test_flip.rb')
-rw-r--r-- | test/ruby/test_flip.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_flip.rb b/test/ruby/test_flip.rb index 8ea6416bdb..9156be0553 100644 --- a/test/ruby/test_flip.rb +++ b/test/ruby/test_flip.rb @@ -29,7 +29,7 @@ class TestFlip < Test::Unit::TestCase assert_nothing_raised(NotImplementedError, bug6899) do 2000.times {eval %[(foo..bar) ? 1 : 2]} end - foo = bar + [foo, bar] end def test_shared_eval @@ -38,6 +38,7 @@ class TestFlip < Test::Unit::TestCase eval("vs.select {|n| if n==2..n==16 then 1 end}") v = eval("vs.select {|n| if n==3..n==6 then 1 end}") assert_equal([*3..6], v, bug7671) + vs end def test_shared_thread |