Feature #10505 » Add_tests_for_Numeric#eql_.patch
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
|
- « Previous
- 1
- 2
- Next »