summaryrefslogtreecommitdiff
path: root/graphics/asymptote/tests/arith/real.asy
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/tests/arith/real.asy')
-rw-r--r--graphics/asymptote/tests/arith/real.asy6
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics/asymptote/tests/arith/real.asy b/graphics/asymptote/tests/arith/real.asy
index 1628258cf8..8f874fb3c0 100644
--- a/graphics/asymptote/tests/arith/real.asy
+++ b/graphics/asymptote/tests/arith/real.asy
@@ -16,3 +16,9 @@ EndTest();
StartTest("real division");
assert((4.0/2.0) == (2.0));
EndTest();
+StartTest("real mod");
+assert((12.0%5.0) == (2.0));
+assert((-12.0%5.0) == (3.0));
+assert((12.0%-5.0) == (-3.0));
+assert((-12.0%-5.0) == (-2.0));
+EndTest();