aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_iterator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_iterator.rb')
-rw-r--r--test/ruby/test_iterator.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_iterator.rb b/test/ruby/test_iterator.rb
index cc0fe76d7b..19677a4fd9 100644
--- a/test/ruby/test_iterator.rb
+++ b/test/ruby/test_iterator.rb
@@ -365,7 +365,7 @@ class TestIterator < Test::Unit::TestCase
def test_assoc_yield
[{:key=>:value}, H.new].each {|h|
- h.each{|a| assert_equal([:key, :value], a)}
+ h.each{|a| assert_equal(:key, a)} # changed at 1.9
h.each{|*a| assert_equal([:key, :value], a)}
h.each{|k,v| assert_equal([:key, :value], [k,v])}
}
@@ -480,3 +480,4 @@ class TestIterator < Test::Unit::TestCase
assert_equal(["b"], ["a", "b", "c"].grep(IterString.new("b")) {|s| s})
end
end
+GC.stress=true