summaryrefslogtreecommitdiff
path: root/tests/typ/structure/enum.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-09-26 15:39:32 +0200
committerLaurenz <laurmaedje@gmail.com>2022-09-26 16:12:57 +0200
commit704f2fbaf1b4483caa12f249a222c49e44f08961 (patch)
tree146f7813fe63409df2c1bbaa487731e992d3ac71 /tests/typ/structure/enum.typ
parent2661f1a5066bd5e3f8a9c68e4a5c304c248efcb7 (diff)
Description lists, link syntax, and new enum syntax
Diffstat (limited to 'tests/typ/structure/enum.typ')
-rw-r--r--tests/typ/structure/enum.typ29
1 files changed, 15 insertions, 14 deletions
diff --git a/tests/typ/structure/enum.typ b/tests/typ/structure/enum.typ
index 7bd6fa88..eb1d9a9d 100644
--- a/tests/typ/structure/enum.typ
+++ b/tests/typ/structure/enum.typ
@@ -1,4 +1,4 @@
-// Test enums.
+// Test enumerations.
---
#enum[Embrace][Extend][Extinguish]
@@ -12,28 +12,28 @@
---
2. Second
1. First
- . Indented
+ + Indented
---
// Test automatic numbering in summed content.
#for i in range(5) {
- [. #roman(1 + i)]
+ [+ #roman(1 + i)]
}
---
// Test label pattern.
#set enum(label: "~ A:")
-. First
-. Second
+1. First
+ + Second
#set enum(label: "(*)")
-. A
-. B
-. C
++ A
++ B
++ C
#set enum(label: "i)")
-. A
-. B
++ A
++ B
---
// Test label closure.
@@ -47,12 +47,13 @@
---
#set enum(label: n => n > 1)
-. A
-. B
++ A
++ B
---
-// Lone dot is not a list.
-.
+// Lone plus is not an enum.
++
+No enum
---
// Error: 18-20 invalid pattern