diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-13 16:27:44 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-13 16:27:44 +0200 |
| commit | 05c27a581ece00e27c16be3d9ac69f3eefedcd4b (patch) | |
| tree | ddd1dfb9598d0b629ce90bb963d194dceb0b4b97 /tests/typ | |
| parent | 11f1f0818b990be1ed4a16652b7f30bf11159237 (diff) | |
Automatically display value in more places
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/structure/enum.typ | 10 | ||||
| -rw-r--r-- | tests/typ/style/show-node.typ | 1 | ||||
| -rw-r--r-- | tests/typ/style/wrap.typ | 2 |
3 files changed, 6 insertions, 7 deletions
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 } |
