diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-13 16:50:57 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-13 16:50:57 +0100 |
| commit | 8f68bc7a8ea619af12d95bec7025bd9f3a86625f (patch) | |
| tree | 7f9b454ed419b45d7787de4ace992b40078d4072 /tests/typ | |
| parent | b1b4e52af9e2da8f8ae1fc17a81ed6cbcbb8f525 (diff) | |
Dissolve basics folder
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/basics/enum.typ | 69 | ||||
| -rw-r--r-- | tests/typ/layout/enum.typ | 28 | ||||
| -rw-r--r-- | tests/typ/layout/list-attach.typ (renamed from tests/typ/basics/list-attach.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/layout/list.typ (renamed from tests/typ/basics/list.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/layout/table.typ (renamed from tests/typ/basics/table.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/layout/terms.typ (renamed from tests/typ/basics/terms.typ) | 0 | ||||
| -rw-r--r-- | tests/typ/meta/heading.typ (renamed from tests/typ/basics/heading.typ) | 0 |
7 files changed, 28 insertions, 69 deletions
diff --git a/tests/typ/basics/enum.typ b/tests/typ/basics/enum.typ deleted file mode 100644 index fd845c2b..00000000 --- a/tests/typ/basics/enum.typ +++ /dev/null @@ -1,69 +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("I", 1 + i)] -} - ---- -// Test label pattern. -#set enum(numbering: "~ A:") -1. First - + Second - -#set enum(numbering: "(*)") -+ A -+ B -+ C - -#set enum(numbering: "i)") -+ A -+ B - ---- -// Mix of different lists -- Bullet List -+ Numbered List -/ Term: List - ---- -// Test numbering with closure. -#enum( - start: 4, - spacing: 0.65em - 3pt, - tight: false, - numbering: n => text( - fill: (red, green, blue).at(calc.mod(n, 3)), - numbering("A", n), - ), - [Red], [Green], [Blue], -) - ---- -#set enum(numbering: n => n > 1) -+ A -+ B - ---- -// Edge cases. -+ -Empty -+Nope - ---- -// Error: 22-24 invalid numbering pattern -#set enum(numbering: "") - ---- -// Error: 22-28 invalid numbering pattern -#set enum(numbering: "(())") diff --git a/tests/typ/layout/enum.typ b/tests/typ/layout/enum.typ new file mode 100644 index 00000000..9512e1b5 --- /dev/null +++ b/tests/typ/layout/enum.typ @@ -0,0 +1,28 @@ +// Test enumerations. + +--- +#enum[Embrace][Extend][Extinguish] + +--- +1. First. + 2. Indented + ++ Second + +--- +// Test automatic numbering in summed content. +#for i in range(5) { + [+ #numbering("I", 1 + i)] +} + +--- +// Mix of different lists +- Bullet List ++ Numbered List +/ Term: List + +--- +// Edge cases. ++ +Empty ++Nope diff --git a/tests/typ/basics/list-attach.typ b/tests/typ/layout/list-attach.typ index 9d043eb0..9d043eb0 100644 --- a/tests/typ/basics/list-attach.typ +++ b/tests/typ/layout/list-attach.typ diff --git a/tests/typ/basics/list.typ b/tests/typ/layout/list.typ index 3fd9ddb1..3fd9ddb1 100644 --- a/tests/typ/basics/list.typ +++ b/tests/typ/layout/list.typ diff --git a/tests/typ/basics/table.typ b/tests/typ/layout/table.typ index 5d423e03..5d423e03 100644 --- a/tests/typ/basics/table.typ +++ b/tests/typ/layout/table.typ diff --git a/tests/typ/basics/terms.typ b/tests/typ/layout/terms.typ index 57864423..57864423 100644 --- a/tests/typ/basics/terms.typ +++ b/tests/typ/layout/terms.typ diff --git a/tests/typ/basics/heading.typ b/tests/typ/meta/heading.typ index 3d637036..3d637036 100644 --- a/tests/typ/basics/heading.typ +++ b/tests/typ/meta/heading.typ |
