summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-30 19:40:29 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-30 20:00:50 +0100
commita6d90c1bf1e9fefa0af04206909a40e112d6bb14 (patch)
treefc16276142f74b9a50102a2e855942f7e2593c25 /tests/typ
parentf70cea508cd30fa40770ea989fe2a19e715a357b (diff)
Numbering functions
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/compiler/for.typ2
-rw-r--r--tests/typ/compiler/return.typ2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/typ/compiler/for.typ b/tests/typ/compiler/for.typ
index 822f7423..f63b870e 100644
--- a/tests/typ/compiler/for.typ
+++ b/tests/typ/compiler/for.typ
@@ -33,7 +33,7 @@
#for v in (1, 2, 3, 4, 5, 6, 7) [#if v >= 2 and v <= 5 { repr(v) }]
// Map captured arguments.
-#let f1(..args) = args.positional().map(repr)
+#let f1(..args) = args.pos().map(repr)
#let f2(..args) = args.named().pairs((k, v) => repr(k) + ": " + repr(v))
#let f(..args) = (f1(..args) + f2(..args)).join(", ")
#f(1, a: 2)
diff --git a/tests/typ/compiler/return.typ b/tests/typ/compiler/return.typ
index 0eea394e..779a56dd 100644
--- a/tests/typ/compiler/return.typ
+++ b/tests/typ/compiler/return.typ
@@ -57,7 +57,7 @@
// Test that the expression is evaluated to the end.
#let sum(..args) = {
let s = 0
- for v in args.positional() {
+ for v in args.pos() {
s += v
}
s