diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-07 16:19:47 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-07 16:19:47 +0000 |
| commit | 0bd0d6ab6be3f4f05fb486483a9bd10760971687 (patch) | |
| tree | ee9d4154ddf29f3de94d3c1e113da4842b1ae47e /test/ruby | |
| parent | 9bb66e5073711f9299ae833c99625b1abd9c52fd (diff) | |
| download | ruby-0bd0d6ab6be3f4f05fb486483a9bd10760971687.tar.gz ruby-0bd0d6ab6be3f4f05fb486483a9bd10760971687.tar.xz ruby-0bd0d6ab6be3f4f05fb486483a9bd10760971687.zip | |
* hash.c (hash_i): make Hash#hash order insensitive.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_hash.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index c3acf14e3..c86cf3297 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -830,4 +830,8 @@ class TestHash < Test::Unit::TestCase #assert_equal("bar", h[a]) assert_nil(h["foo"]) end + + def test_hash_hash + assert_equal({0=>2,11=>1}.hash, {11=>1,0=>2}.hash) + end end |
