diff options
Diffstat (limited to 'tests/typ/structure/enum.typ')
| -rw-r--r-- | tests/typ/structure/enum.typ | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/tests/typ/structure/enum.typ b/tests/typ/structure/enum.typ deleted file mode 100644 index d4c30385..00000000 --- a/tests/typ/structure/enum.typ +++ /dev/null @@ -1,65 +0,0 @@ -// Test enumerations. - ---- -#enum[Embrace][Extend][Extinguish] - ---- -1. First. - 2. Indented - -+ Second - ---- -// Test automatic numbering in summed content. -#for i in range(5) { - [+ #numbering(1 + i, "I")] -} - ---- -// Test label pattern. -#set enum(label: "~ A:") -1. First - + Second - -#set enum(label: "(*)") -+ A -+ B -+ C - -#set enum(label: "i)") -+ A -+ B - ---- -// Mix of different lists -- List -+ Enum -/ Desc: List - ---- -// Test label closure. -#enum( - start: 4, - spacing: 0.65em - 3pt, - tight: false, - label: n => text(fill: (red, green, blue)(mod(n, 3)), numbering(n, "A")), - [Red], [Green], [Blue], -) - ---- -#set enum(label: n => n > 1) -+ A -+ B - ---- -// Lone plus is not an enum. -+ -No enum - ---- -// Error: 18-20 invalid numbering pattern -#set enum(label: "") - ---- -// Error: 18-24 invalid numbering pattern -#set enum(label: "(())") |
