diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_hash.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index c3acf14e3c..c86cf3297d 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -830,4 +830,8 @@ class TestHash < Test::Unit::TestCase #assert_equal("bar", h[a]) assert_nil(h["foo"]) end + + def test_hash_hash + assert_equal({0=>2,11=>1}.hash, {11=>1,0=>2}.hash) + end end |