diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-02 03:03:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-02 03:03:18 +0000 |
commit | 86bbfdadf3d9f2da5febeb02a3dcf81f3f2478ef (patch) | |
tree | b19c2ab0d0940283342b35938d8d0ccde74734e9 /test/ruby/test_hash.rb | |
parent | 48fd404ffe789d592597640842f17360e6d0fac4 (diff) | |
download | ruby-86bbfdadf3d9f2da5febeb02a3dcf81f3f2478ef.tar.gz |
* hash.c (recursive_hash): hash value of emptied hash should be
equal to an empty hash. [ruby-core:38650]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_hash.rb')
-rw-r--r-- | test/ruby/test_hash.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index 82aba92529..82272cb301 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -809,6 +809,9 @@ class TestHash < Test::Unit::TestCase def test_hash2 assert_kind_of(Integer, {}.hash) + h = {1=>2} + h.shift + assert_equal({}.hash, h.hash, '[ruby-core:38650]') end def test_update2 |