summaryrefslogtreecommitdiff
path: root/test/ruby/test_hash.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_hash.rb')
-rw-r--r--test/ruby/test_hash.rb3
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