From 6b4c2401aa5386fe138e8d796c22769cabb999b0 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 7 Jun 2008 16:19:47 +0000 Subject: * hash.c (hash_i): make Hash#hash order insensitive. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_hash.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index 38d72f701b..4131a6bdd3 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -635,4 +635,7 @@ class TestHash < Test::Unit::TestCase assert_equal([], expected - vals) end + def test_hash_hash + assert_equal({0=>2,11=>1}.hash, {11=>1,0=>2}.hash) + end end -- cgit v1.2.3