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.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb
index c860b25239..acff4821f5 100644
--- a/test/ruby/test_hash.rb
+++ b/test/ruby/test_hash.rb
@@ -871,4 +871,8 @@ class TestHash < Test::Unit::TestCase
def o.hash; 2<<100; end
assert_equal({x=>1}.hash, {x=>1}.hash)
end
+
+ def test_hash_poped
+ assert_nothing_raised { eval("a = 1; {a => a}; a") }
+ end
end