aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_flip.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_flip.rb')
-rw-r--r--test/ruby/test_flip.rb3
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