summaryrefslogtreecommitdiff
path: root/tests/typ/compiler
diff options
context:
space:
mode:
authorHarmoGlace <23212967+HarmoGlace@users.noreply.github.com>2023-04-20 16:09:41 +0200
committerGitHub <noreply@github.com>2023-04-20 16:09:41 +0200
commit42b93b7b534557205a6dc3dfda8fe3cfccfcc458 (patch)
tree924171b6c1299fef0b628e0ac8c89c5775fea8be /tests/typ/compiler
parentc117e2dc276d19b022abccac0d252bd7fc1cd44e (diff)
Add `quo`, `trunc` and `fract` calculation methods and rename `mod` to `rem` (#890)
Diffstat (limited to 'tests/typ/compiler')
-rw-r--r--tests/typ/compiler/break-continue.typ4
-rw-r--r--tests/typ/compiler/string.typ2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/typ/compiler/break-continue.typ b/tests/typ/compiler/break-continue.typ
index f6245007..6f505f80 100644
--- a/tests/typ/compiler/break-continue.typ
+++ b/tests/typ/compiler/break-continue.typ
@@ -41,7 +41,7 @@
#while x < 8 {
i += 1
- if calc.mod(i, 3) == 0 {
+ if calc.rem(i, 3) == 0 {
continue
}
x += i
@@ -55,7 +55,7 @@
#let x = for i in range(5) {
"a"
- if calc.mod(i, 3) == 0 {
+ if calc.rem(i, 3) == 0 {
"_"
continue
}
diff --git a/tests/typ/compiler/string.typ b/tests/typ/compiler/string.typ
index 95e204c5..2f7ba9ec 100644
--- a/tests/typ/compiler/string.typ
+++ b/tests/typ/compiler/string.typ
@@ -103,7 +103,7 @@
let caps = match.captures
time += 60 * int(caps.at(0)) + int(caps.at(1))
}
- str(int(time / 60)) + ":" + str(calc.mod(time, 60))
+ str(int(time / 60)) + ":" + str(calc.rem(time, 60))
}
#test(timesum(""), "0:0")