Skip to content

Commit

Permalink
merge test code from #2003
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Apr 4, 2014
1 parent b9a4d64 commit 8cfd5f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/t/hash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
assert_true({ 'abc' => 'abc' } == { 'abc' => 'abc' })
assert_false({ 'abc' => 'abc' } == { 'cba' => 'cba' })
assert_true({ :equal => 1 } == { :equal => 1.0 })
assert_false({ :a => 1 } == true)
end

assert('Hash#[]', '15.2.13.4.2') do
Expand Down Expand Up @@ -283,6 +284,7 @@
c = { 'a' => 1.0, 'b' => 2, 'c' => 3 }
assert_true(a.eql?(b))
assert_false(a.eql?(c))
assert_false(a.eql?(true))
end

assert('Hash#reject') do
Expand Down

0 comments on commit 8cfd5f1

Please sign in to comment.