Add tests for `Integer#quo` and `Float#quo`;
MODIFY
test/t/float.rb
test/t/float.rb
@@ -41,6 +41,11 @@ assert('Float#/', '15.2.9.3.4') do
assert_float(1.0 , a)
assert_float(3.123456789, b)
end
+assert('Float#quo') do
+ a = 3.123456789.quo(3.123456789)
+
+ assert_float(1.0 , a)
+end
assert('Float#%', '15.2.9.3.5') do
a = 3.125 % 3.125

MODIFY
test/t/integer.rb
test/t/integer.rb
@@ -43,6 +43,12 @@ assert('Integer#/', '15.2.8.3.4') do
assert_equal 2.0, b
end
+assert('Integer#quo') do
+ a = 6.quo(5)
+
+ assert_equal 1.2, a
+end
+
assert('Integer#%', '15.2.8.3.5') do
a = 1%1
b = 1%1.0

Add tests for `Integer#quo` and `Float#quo`; #5268