mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 09:04:05 +02:00
* array.c (recursive_hash): reject recursive key.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
003fa83e0c
commit
0101958745
3 changed files with 6 additions and 4 deletions
|
@ -1572,9 +1572,7 @@ class TestArray < Test::Unit::TestCase
|
|||
def test_hash2
|
||||
a = []
|
||||
a << a
|
||||
b = []
|
||||
b << b
|
||||
assert_equal(a.hash, b.hash)
|
||||
assert_raise(ArgumentError) { a.hash }
|
||||
end
|
||||
|
||||
def test_flatten2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue