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

ruby-changes:12457

From: akr <ko1@a...>
Date: Fri, 17 Jul 2009 09:18:49 +0900 (JST)
Subject: [ruby-changes:12457] Ruby:r24157 (trunk): remove test for recursive hash key.

akr	2009-07-17 09:18:34 +0900 (Fri, 17 Jul 2009)

  New Revision: 24157

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

  Log:
    remove test for recursive hash key.  [ruby-core:22921]

  Modified files:
    trunk/test/ruby/test_hash.rb

Index: test/ruby/test_hash.rb
===================================================================
--- test/ruby/test_hash.rb	(revision 24156)
+++ test/ruby/test_hash.rb	(revision 24157)
@@ -767,12 +767,6 @@
     assert(h1 != h2)
     h1 = {1=>2}; h2 = {1=>4}
     assert(h1 != h2)
-
-    h1 = {}; h1[h1] = h1; h1.rehash
-    h2 = {}; h2[h2] = h2; h2.rehash
-    # assert(h1 != h2)
-    # recursive hashes are handled properly now. [ruby-core:23402]
-    assert(h1 == h2)
   end
 
   def test_eql

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

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