Project

General

Profile

Feature #10505 » Add_tests_for_Numeric#eql_.patch

gogotanaka (Kazuki Tanaka), 11/13/2014 12:26 AM

View differences:

test/ruby/test_numeric.rb
assert_equal(1, 1.0)
assert_not_operator(1, :eql?, 1.0)
assert_not_operator(1, :eql?, 2)
assert(4.eql?(6) { |n| n % 2 })
assert(3.eql?(-3, &:abs))
assert(1.eql?(1.0, &:itself))
end
end
(2-2/2)