[前][次][番号順一覧][スレッド一覧]

ruby-changes:33224

From: nobu <ko1@a...>
Date: Mon, 10 Mar 2014 10:51:52 +0900 (JST)
Subject: [ruby-changes:33224] nobu:r45303 (trunk): merge GH-558

nobu	2014-03-10 10:51:45 +0900 (Mon, 10 Mar 2014)

  New Revision: 45303

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45303

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

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_enumerator.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45302)
+++ ChangeLog	(revision 45303)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Mar 10 10:51:17 2014  ksss  <co000ri@g...>
+
+	* 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@8...>
 
 	* class.c (rb_class_subclass_add): use xmalloc
Index: test/ruby/test_enumerator.rb
===================================================================
--- test/ruby/test_enumerator.rb	(revision 45302)
+++ test/ruby/test_enumerator.rb	(revision 45303)
@@ -25,7 +25,7 @@ class TestEnumerator < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/ruby/test_enumerator.rb#L25
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]