summaryrefslogtreecommitdiff
path: root/tests/typ/code/field.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-07 12:21:12 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-07 12:46:05 +0100
commitefd1853d069fbd1476e82d015da4d0d04cfaccc0 (patch)
tree842b745c134306539d10c61be9485794fe8dc7dc /tests/typ/code/field.typ
parenteb951c008beea502042db4a3a0e8d1f8b51f6f52 (diff)
Show it!
- New show rule syntax - Set if syntax - Removed wrap syntax
Diffstat (limited to 'tests/typ/code/field.typ')
-rw-r--r--tests/typ/code/field.typ4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/typ/code/field.typ b/tests/typ/code/field.typ
index b63a8768..abea87fb 100644
--- a/tests/typ/code/field.typ
+++ b/tests/typ/code/field.typ
@@ -14,7 +14,7 @@
---
// Test field on node.
-#show node: list as {
+#show list: node => {
test(node.items.len(), 3)
}
@@ -32,7 +32,7 @@
---
// Error: 29-32 unknown field "fun"
-#show node: heading as node.fun
+#show heading: node => node.fun
= A
---