diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-17 07:49:06 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-17 07:49:06 +0000 |
commit | 0101958745f8a18679a71f378656f0ed5184e36b (patch) | |
tree | 0f93f56756189807009888ffed76af0a1a8236a2 /test/ruby/test_array.rb | |
parent | 003fa83e0cce2b1cc514acc8a9aa7e4c7278104d (diff) | |
download | ruby-0101958745f8a18679a71f378656f0ed5184e36b.tar.gz |
* array.c (recursive_hash): reject recursive key.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_array.rb')
-rw-r--r-- | test/ruby/test_array.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index 489b401574..2723b37c6a 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -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 |