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
359 359
    assert_equal(1, 1.0)
360 360
    assert_not_operator(1, :eql?, 1.0)
361 361
    assert_not_operator(1, :eql?, 2)
362
    assert(4.eql?(6) { |n| n % 2 })
363
    assert(3.eql?(-3, &:abs))
364
    assert(1.eql?(1.0, &:itself))
362 365
  end
363 366
end
364
-