summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorfrozolotl <44589151+frozolotl@users.noreply.github.com>2025-05-20 18:24:46 +0200
committerGitHub <noreply@github.com>2025-05-20 16:24:46 +0000
commitd42d2ed200c8f3f167ee09be69fcf86f4b645971 (patch)
treec018f7b7312f8ec4788670d594d7fbbf56b31c3e /tests/suite
parente90c2f74ef63d92fc160ba5ba04b780c1a64fe75 (diff)
Error if an unexpected named argument was received (#6192)
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/math/call.typ9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/suite/math/call.typ b/tests/suite/math/call.typ
index 5caacfac..54b97ceb 100644
--- a/tests/suite/math/call.typ
+++ b/tests/suite/math/call.typ
@@ -221,6 +221,15 @@ $
// Hint: 4-6 or if you meant to display this as text, try placing it in quotes: `"ab"`
$ 5ab $
+--- math-call-symbol ---
+$ phi(x) $
+$ phi(x, y) $
+$ phi(1,2,,3,) $
+
+--- math-call-symbol-named-argument ---
+// Error: 10-18 unexpected argument: alpha
+$ phi(x, alpha: y) $
+
--- issue-3774-math-call-empty-2d-args ---
$ mat(;,) $
// Add some whitespace/trivia: