summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-13 16:27:44 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-13 16:27:44 +0200
commit05c27a581ece00e27c16be3d9ac69f3eefedcd4b (patch)
treeddd1dfb9598d0b629ce90bb963d194dceb0b4b97 /tests
parent11f1f0818b990be1ed4a16652b7f30bf11159237 (diff)
Automatically display value in more places
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/structure/enum.pngbin25686 -> 28037 bytes
-rw-r--r--tests/ref/style/show-node.pngbin22014 -> 23385 bytes
-rw-r--r--tests/ref/style/wrap.pngbin24733 -> 24846 bytes
-rw-r--r--tests/typ/structure/enum.typ10
-rw-r--r--tests/typ/style/show-node.typ1
-rw-r--r--tests/typ/style/wrap.typ2
6 files changed, 6 insertions, 7 deletions
diff --git a/tests/ref/structure/enum.png b/tests/ref/structure/enum.png
index a9111f57..0fcae99d 100644
--- a/tests/ref/structure/enum.png
+++ b/tests/ref/structure/enum.png
Binary files differ
diff --git a/tests/ref/style/show-node.png b/tests/ref/style/show-node.png
index 3cb3539c..63be751a 100644
--- a/tests/ref/style/show-node.png
+++ b/tests/ref/style/show-node.png
Binary files differ
diff --git a/tests/ref/style/wrap.png b/tests/ref/style/wrap.png
index 82d1c34d..7fb8dfc5 100644
--- a/tests/ref/style/wrap.png
+++ b/tests/ref/style/wrap.png
Binary files differ
diff --git a/tests/typ/structure/enum.typ b/tests/typ/structure/enum.typ
index b1045ee2..7bd6fa88 100644
--- a/tests/typ/structure/enum.typ
+++ b/tests/typ/structure/enum.typ
@@ -46,6 +46,11 @@
)
---
+#set enum(label: n => n > 1)
+. A
+. B
+
+---
// Lone dot is not a list.
.
@@ -56,8 +61,3 @@
---
// Error: 18-24 invalid pattern
#set enum(label: "(())")
-
----
-// Error: 18-28 expected content, found boolean
-#set enum(label: n => false)
-. A
diff --git a/tests/typ/style/show-node.typ b/tests/typ/style/show-node.typ
index 678ff151..33895add 100644
--- a/tests/typ/style/show-node.typ
+++ b/tests/typ/style/show-node.typ
@@ -76,7 +76,6 @@ Another text.
}
---
-// Error: 18-22 expected content, found integer
#show heading as 1234
= Heading
diff --git a/tests/typ/style/wrap.typ b/tests/typ/style/wrap.typ
index 57f21f99..e37c4bc9 100644
--- a/tests/typ/style/wrap.typ
+++ b/tests/typ/style/wrap.typ
@@ -25,8 +25,8 @@ A [_B #wrap c in [*#c*]; C_] D
Forest
---
+// Ok, whatever.
{
- // Error: 3-24 expected remaining block to yield content, found integer
wrap body in 2 * body
2
}