From 78032eeab16d5058cbd7bb27bc840e95ad95ca84 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 29 Jul 2015 05:54:21 +0000 Subject: 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 --- test/ruby/test_hash.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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 -- cgit v1.2.3