summaryrefslogtreecommitdiff
path: root/tests/typ/compiler
diff options
context:
space:
mode:
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")