зеркало из https://github.com/github/ruby.git
remove test for recursive hash key. [ruby-core:22921]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
31060fb11b
Коммит
6dc1fea552
|
@ -767,12 +767,6 @@ class TestHash < Test::Unit::TestCase
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче