summaryrefslogtreecommitdiff
path: root/tests/typ/code
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/code')
-rw-r--r--tests/typ/code/ops.typ10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/typ/code/ops.typ b/tests/typ/code/ops.typ
index 61d1ce38..04a72e72 100644
--- a/tests/typ/code/ops.typ
+++ b/tests/typ/code/ops.typ
@@ -163,7 +163,6 @@
---
// Test with operator.
-// Ref: true
// Apply positional arguments.
#let add(x, y) = x + y
@@ -175,6 +174,9 @@
#test(f(4), 6)
// Make sure that named arguments are overridable.
-#let align with (horizontal: right)
-#align[Right] \
-#align(horizontal: left)[Left]
+#let inc(x, y: 1) = x + y
+#test(inc(1), 2)
+
+#let inc with (y: 2)
+#test(inc(2), 4)
+#test(inc(2, y: 4), 6)