From 73fdc38bc2fa536afd405d023b5d568488556db0 Mon Sep 17 00:00:00 2001 From: yugui Date: Sat, 20 Jun 2009 09:06:35 +0000 Subject: 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 --- test/ruby/test_hash.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/ruby/test_hash.rb') 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 -- cgit