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 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/typ/structure') 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 -- cgit v1.2.3