diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-05 11:56:11 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-05 11:56:11 +0000 |
| commit | 60a40ecaf65435c93ad24a4cbb5cd1779aeb2bda (patch) | |
| tree | da638a676ad0e7365fa01ca822c3a320ac028921 /test | |
| parent | b7d63cbb85e028ab919fa581aee2a748a5f994ab (diff) | |
* gc.c (rb_obj_id): a Fixnum which is beyond signed long
was converted to a Bignum in calculating its hash.
[ruby-dev:39637]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -rw-r--r-- | test/ruby/test_hash.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index 4131a6bdd3..f2ff95464d 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -637,5 +637,7 @@ class TestHash < Test::Unit::TestCase def test_hash_hash assert_equal({0=>2,11=>1}.hash, {11=>1,0=>2}.hash) + assert_equal({:a=>2**29}.hash, {:a=>2**29}.hash) + assert_equal({:a=>2**61}.hash, {:a=>2**61}.hash) end end |
