summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-17 07:49:06 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-17 07:49:06 +0000
commit0101958745f8a18679a71f378656f0ed5184e36b (patch)
tree0f93f56756189807009888ffed76af0a1a8236a2 /test/ruby
parent003fa83e0cce2b1cc514acc8a9aa7e4c7278104d (diff)
* 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')
-rw-r--r--test/ruby/test_array.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index 489b401..2723b37 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