1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

merge GH-558

* test/ruby/test_enumerator.rb (test_iterators): fix test for hash
  iterators.  [Fixes GH-558]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-03-10 01:51:45 +00:00
parent b39eabac5d
commit 21759a08b3
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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