mruby-numeric-ext: add ceildiv test with Float and Rational.
MODIFY
mrbgems/mruby-numeric-ext/test/numeric.rb
mrbgems/mruby-numeric-ext/test/numeric.rb
@@ -36,8 +36,12 @@ assert('Integer#ceildiv') do
assert_equal(-1, -4.ceildiv(3))
assert_equal(2, -4.ceildiv(-3))
-# assert_equal(3, 3.ceildiv(1.2))
-# assert_equal(3, 3.ceildiv(6/5r))
+ if Object.const_defined?(:Float)
+ assert_equal(3, 3.ceildiv(1.2))
+ end
+ if Object.const_defined?(:Rational)
+ assert_equal(3, 3.ceildiv(6/5r))
+ end
# assert_equal(10, (10**100-11).ceildiv(10**99-1))
# assert_equal(11, (10**100-9).ceildiv(10**99-1))

mruby-numeric-ext: add ceildiv test with Float and Rational.