summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_hash.rb
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-20 09:06:35 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-20 09:06:35 +0000
commit73fdc38bc2fa536afd405d023b5d568488556db0 (patch)
treee3a9880f73be06acc8e852899f6caa3ac8575c5f /test/ruby/test_hash.rb
parent105f4d996405ef1697ba5e39083b8dada066c3cf (diff)
merges r23557 and r23563 from trunk into ruby_1_9_1.
-- * thread.c (rb_exec_recursive_paired): new function for proper handling of recursive arrays. [EXPERIMENTAL] [ruby-core:23402] * array.c (rb_ary_equal, rb_ary_eql, rb_ary_cmp): use above. * hash.c (hash_equal): ditto. -- * test/ruby/test_hash.rb (TestHash::test_equal2): recursive hashes are handled properly now. ref: [ruby-core:23402] * test/ruby/test_m17n.rb (TestM17N#test_sprintf_p): test fixed git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_hash.rb')
-rw-r--r--test/ruby/test_hash.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb
index 5a17ac4fb..3f5944384 100644
--- a/test/ruby/test_hash.rb
+++ b/test/ruby/test_hash.rb
@@ -770,7 +770,9 @@ class TestHash < Test::Unit::TestCase
h1 = {}; h1[h1] = h1; h1.rehash
h2 = {}; h2[h2] = h2; h2.rehash
- assert(h1 != h2)
+ # assert(h1 != h2)
+ # recursive hashes are handled properly now. [ruby-core:23402]
+ assert(h1 == h2)
end
def test_eql