diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-29 05:54:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-29 05:54:21 +0000 |
commit | 48f9012df931de3a526db7d3ce03c408a2c11ba5 (patch) | |
tree | 78fd985983a013d2004565c739bee3cf52cd2f1d /test | |
parent | efc7a3a712f84e3f59f09a89a82f2c36081f0f43 (diff) | |
download | ruby-48f9012df931de3a526db7d3ce03c408a2c11ba5.tar.gz |
hash.c: fix symbol hash
* hash.c (rb_sym_hash): return same value as rb_any_hash() of
Symbol. [Bug #9381]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_hash.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index d4837ca6cf..c37e072e21 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -1282,6 +1282,7 @@ class TestHash < Test::Unit::TestCase bad = [ 5, true, false, nil, 0.0, 1.72723e-77, + :foo, "dsym_#{self.object_id.to_s(16)}_#{Time.now.to_i.to_s(16)}".to_sym, ].select do |x| hash = {x => bug9381} hash[wrapper.new(x)] != bug9381 |