summaryrefslogtreecommitdiff
path: root/tests/typ/code/call.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-12-15 20:27:41 +0100
committerLaurenz <laurmaedje@gmail.com>2021-12-15 20:27:41 +0100
commit2a3d0f4b390457174ed09347dd29e97ff9a783e4 (patch)
tree0e0634bff6b7f64131267f4cbe05651c1c91d900 /tests/typ/code/call.typ
parent244ad386ec271ff86a2101eb4cc38d37a55552b9 (diff)
Set Rules Episode VII: The Set Awakens
Diffstat (limited to 'tests/typ/code/call.typ')
-rw-r--r--tests/typ/code/call.typ11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/typ/code/call.typ b/tests/typ/code/call.typ
index 2c16af1c..5736c63b 100644
--- a/tests/typ/code/call.typ
+++ b/tests/typ/code/call.typ
@@ -5,7 +5,8 @@
// Ref: true
// Ommitted space.
-[#font(weight:"bold")Bold]
+#let f() = {}
+[#f()*Bold*]
// Call return value of function with body.
#let f(x, body) = (y) => [#x] + body + [#y]
@@ -44,25 +45,25 @@
}
---
-// Error: 2-6 expected function or collection, found boolean
+// Error: 2-6 expected callable or collection, found boolean
{true()}
---
#let x = "x"
-// Error: 1-3 expected function or collection, found string
+// Error: 1-3 expected callable or collection, found string
#x()
---
#let f(x) = x
-// Error: 1-6 expected function or collection, found integer
+// Error: 1-6 expected callable or collection, found integer
#f(1)(2)
---
#let f(x) = x
-// Error: 1-6 expected function or collection, found template
+// Error: 1-6 expected callable or collection, found template
#f[1](2)
---