From 05c27a581ece00e27c16be3d9ac69f3eefedcd4b Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 13 May 2022 16:27:44 +0200 Subject: Automatically display value in more places --- tests/typ/structure/enum.typ | 10 +++++----- tests/typ/style/show-node.typ | 1 - tests/typ/style/wrap.typ | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) (limited to 'tests/typ') 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 @@ -45,6 +45,11 @@ [Red], [Green], [Blue], ) +--- +#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 } -- cgit v1.2.3