summaryrefslogtreecommitdiffhomepage
path: root/test/t/integer.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-01-17 23:01:41 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-01-17 23:02:36 +0900
commitf4a3dc4f07db538403ad719d9563ddda854b7efb (patch)
treeec907d4a056bb6d3a03b5f459addceb1eb8866f1 /test/t/integer.rb
parent12ff88563d09f7c5b9f1c03b7f10bdbebd25e647 (diff)
downloadmruby-f4a3dc4f07db538403ad719d9563ddda854b7efb.tar.gz
mruby-f4a3dc4f07db538403ad719d9563ddda854b7efb.zip
Add tests for `Integer#quo` and `Float#quo`; #5268
Diffstat (limited to 'test/t/integer.rb')
-rw-r--r--test/t/integer.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/t/integer.rb b/test/t/integer.rb
index adc8fe828..2523d2631 100644
--- a/test/t/integer.rb
+++ b/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