diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_enumerator.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Mar 10 10:51:17 2014 ksss <co000ri@gmail.com> + + * test/ruby/test_enumerator.rb (test_iterators): fix test for hash + iterators. [Fixes GH-558] + Sun Mar 9 14:14:49 2014 Eric Wong <e@80x24.org> * class.c (rb_class_subclass_add): use xmalloc diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb index 981d8bd434..f2a7afa3c1 100644 --- a/test/ruby/test_enumerator.rb +++ b/test/ruby/test_enumerator.rb @@ -25,7 +25,7 @@ class TestEnumerator < Test::Unit::TestCase def test_iterators assert_equal [0, 1, 2], enum_test(3.times) assert_equal [:x, :y, :z], enum_test([:x, :y, :z].each) - assert_equal [[:x, 1], [:y, 2]], enum_test({:x=>1, :y=>2}) + assert_equal [[:x, 1], [:y, 2]], enum_test({:x=>1, :y=>2}.each) end ## Enumerator as Iterator |