diff options
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 e8b8ef040c..5694d2f01e 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -876,6 +876,7 @@ class TestHash < Test::Unit::TestCase def test_assoc assert_equal([3,4], {1=>2, 3=>4, 5=>6}.assoc(3)) assert_nil({1=>2, 3=>4, 5=>6}.assoc(4)) + assert_equal([1.0,1], {1.0=>1}.assoc(1)) end def test_rassoc |