summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMalo <57839069+MDLC01@users.noreply.github.com>2025-01-06 16:41:58 +0100
committerGitHub <noreply@github.com>2025-01-06 15:41:58 +0000
commite09b55f00f4213a76285e90825dfab570a051359 (patch)
treed3b1bdb65d307386b626b7b47ab71859aa1a1696 /tests
parent5c876535cc89912b32bc29a17c753ae9b1f03938 (diff)
Allow adding and joining `arguments` (#5651)
Diffstat (limited to 'tests')
-rw-r--r--tests/suite/foundations/arguments.typ (renamed from tests/suite/scripting/arguments.typ)9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/suite/scripting/arguments.typ b/tests/suite/foundations/arguments.typ
index e82f4962..1439b6be 100644
--- a/tests/suite/scripting/arguments.typ
+++ b/tests/suite/foundations/arguments.typ
@@ -16,3 +16,12 @@
#let args = arguments(0, 1, a: 2, 3)
// Error: 2-14 arguments do not contain key "b" and no default value was specified
#args.at("b")
+
+--- arguments-plus-sum-join ---
+#let lhs = arguments(0, "1", key: "value", 3)
+#let rhs = arguments(other-key: 4, key: "other value", 3)
+#let result = arguments(0, "1", 3, other-key: 4, key: "other value", 3)
+#test(lhs + rhs, result)
+#test({lhs; rhs}, result)
+#test((lhs, rhs).sum(), result)
+#test((lhs, rhs).join(), result)