summaryrefslogtreecommitdiff
path: root/tests/typ/compiler
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-08 10:54:04 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-08 11:02:27 +0100
commite5eab73374880077971f3f22acbdd3d302877128 (patch)
tree07aa926b27032d6bcd82486d664dfd4161ccbd3e /tests/typ/compiler
parent1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 (diff)
Streamline field names
Diffstat (limited to 'tests/typ/compiler')
-rw-r--r--tests/typ/compiler/field.typ2
-rw-r--r--tests/typ/compiler/show-node.typ8
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/typ/compiler/field.typ b/tests/typ/compiler/field.typ
index 1d7d0b7a..27b31f7d 100644
--- a/tests/typ/compiler/field.typ
+++ b/tests/typ/compiler/field.typ
@@ -15,7 +15,7 @@
---
// Test field on node.
#show list: node => {
- test(node.items.len(), 3)
+ test(node.children.len(), 3)
}
- A
diff --git a/tests/typ/compiler/show-node.typ b/tests/typ/compiler/show-node.typ
index 6416043c..f87b1971 100644
--- a/tests/typ/compiler/show-node.typ
+++ b/tests/typ/compiler/show-node.typ
@@ -2,7 +2,7 @@
---
// Override lists.
-#show list: it => "(" + it.items.map(item => item.body).join(", ") + ")"
+#show list: it => "(" + it.children.map(v => v.body).join(", ") + ")"
- A
- B
@@ -31,9 +31,9 @@ my heading?
box(move(dy: -1pt)[📖])
h(5pt)
if it.level == 1 {
- underline(text(1.25em, blue, it.title))
+ underline(text(1.25em, blue, it.body))
} else {
- text(red, it.title)
+ text(red, it.body)
}
})
@@ -51,7 +51,7 @@ Another text.
#show heading: it => {
set text(red)
show "ding": [🛎]
- it.title
+ it.body
}
= Heading