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 | |
| parent | b1b4e52af9e2da8f8ae1fc17a81ed6cbcbb8f525 (diff) | |
Dissolve basics folder
| -rw-r--r-- | tests/ref/basics/enum.png | bin | 30313 -> 0 bytes | |||
| -rw-r--r-- | tests/ref/layout/enum.png | bin | 0 -> 8462 bytes | |||
| -rw-r--r-- | tests/ref/layout/list-attach.png (renamed from tests/ref/basics/list-attach.png) | bin | 11016 -> 11016 bytes | |||
| -rw-r--r-- | tests/ref/layout/list.png (renamed from tests/ref/basics/list.png) | bin | 20936 -> 20936 bytes | |||
| -rw-r--r-- | tests/ref/layout/table.png (renamed from tests/ref/basics/table.png) | bin | 4295 -> 4295 bytes | |||
| -rw-r--r-- | tests/ref/layout/terms.png (renamed from tests/ref/basics/terms.png) | bin | 17233 -> 17233 bytes | |||
| -rw-r--r-- | tests/ref/meta/heading.png (renamed from tests/ref/basics/heading.png) | bin | 26270 -> 26270 bytes | |||
| -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 |
14 files changed, 28 insertions, 69 deletions
diff --git a/tests/ref/basics/enum.png b/tests/ref/basics/enum.png Binary files differdeleted file mode 100644 index 8e48076b..00000000 --- a/tests/ref/basics/enum.png +++ /dev/null diff --git a/tests/ref/layout/enum.png b/tests/ref/layout/enum.png Binary files differnew file mode 100644 index 00000000..97c3f7a7 --- /dev/null +++ b/tests/ref/layout/enum.png diff --git a/tests/ref/basics/list-attach.png b/tests/ref/layout/list-attach.png Binary files differindex 9b0e4c68..9b0e4c68 100644 --- a/tests/ref/basics/list-attach.png +++ b/tests/ref/layout/list-attach.png diff --git a/tests/ref/basics/list.png b/tests/ref/layout/list.png Binary files differindex 6db5fb71..6db5fb71 100644 --- a/tests/ref/basics/list.png +++ b/tests/ref/layout/list.png diff --git a/tests/ref/basics/table.png b/tests/ref/layout/table.png Binary files differindex f50f613b..f50f613b 100644 --- a/tests/ref/basics/table.png +++ b/tests/ref/layout/table.png diff --git a/tests/ref/basics/terms.png b/tests/ref/layout/terms.png Binary files differindex 5c695795..5c695795 100644 --- a/tests/ref/basics/terms.png +++ b/tests/ref/layout/terms.png diff --git a/tests/ref/basics/heading.png b/tests/ref/meta/heading.png Binary files differindex b4f99665..b4f99665 100644 --- a/tests/ref/basics/heading.png +++ b/tests/ref/meta/heading.png 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 |
