summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-01-28 15:35:56 +0100
committerLaurenz <laurmaedje@gmail.com>2023-01-28 15:36:32 +0100
commit4809e685a231a3ade2c78b75685ee859196c38c1 (patch)
treee3141236cca536c31c6ef4a6df6d218c16ba5a94 /tests
parent28c554ec2185a15e22f0408ce485ed4afe035e03 (diff)
More capable math calls
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math/simple.pngbin8334 -> 8333 bytes
-rw-r--r--tests/typ/compiler/dict.typ2
-rw-r--r--tests/typ/compiler/for.typ2
3 files changed, 2 insertions, 2 deletions
diff --git a/tests/ref/math/simple.png b/tests/ref/math/simple.png
index 4daa52e1..a0a864af 100644
--- a/tests/ref/math/simple.png
+++ b/tests/ref/math/simple.png
Binary files differ
diff --git a/tests/typ/compiler/dict.typ b/tests/typ/compiler/dict.typ
index c34b5478..02097724 100644
--- a/tests/typ/compiler/dict.typ
+++ b/tests/typ/compiler/dict.typ
@@ -49,7 +49,7 @@
#test("c" in dict, true)
#test(dict.len(), 3)
#test(dict.values(), (3, 1, 2))
-#test(dict.pairs((k, v) => k + str(v)).join(), "a3b1c2")
+#test(dict.pairs().map(p => p.first() + str(p.last())).join(), "a3b1c2")
#{ dict.remove("c") }
#test("c" in dict, false)
diff --git a/tests/typ/compiler/for.typ b/tests/typ/compiler/for.typ
index cf717411..7833aad7 100644
--- a/tests/typ/compiler/for.typ
+++ b/tests/typ/compiler/for.typ
@@ -34,7 +34,7 @@
// Map captured arguments.
#let f1(..args) = args.pos().map(repr)
-#let f2(..args) = args.named().pairs((k, v) => repr(k) + ": " + repr(v))
+#let f2(..args) = args.named().pairs().map(p => repr(p.first()) + ": " + repr(p.last()))
#let f(..args) = (f1(..args) + f2(..args)).join(", ")
#f(1, a: 2)