diff options
Diffstat (limited to 'test/ruby/test_array.rb')
-rw-r--r-- | test/ruby/test_array.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index 2723b37c6a..fd3b98432d 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -1572,7 +1572,8 @@ class TestArray < Test::Unit::TestCase def test_hash2 a = [] a << a - assert_raise(ArgumentError) { a.hash } + assert_equal([[a]].hash, a.hash) + assert_not_equal([a, a].hash, a.hash) # Implementation dependent end def test_flatten2 |