diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/base/numbering.png | bin | 10634 -> 7112 bytes | |||
| -rw-r--r-- | tests/ref/base/string.png | bin | 10614 -> 0 bytes | |||
| -rw-r--r-- | tests/typ/base/color.typ | 2 | ||||
| -rw-r--r-- | tests/typ/base/numbering.typ | 13 | ||||
| -rw-r--r-- | tests/typ/base/string.typ | 21 | ||||
| -rw-r--r-- | tests/typ/structure/enum.typ | 4 |
6 files changed, 16 insertions, 24 deletions
diff --git a/tests/ref/base/numbering.png b/tests/ref/base/numbering.png Binary files differindex d4d575d9..aa34de29 100644 --- a/tests/ref/base/numbering.png +++ b/tests/ref/base/numbering.png diff --git a/tests/ref/base/string.png b/tests/ref/base/string.png Binary files differdeleted file mode 100644 index 02184316..00000000 --- a/tests/ref/base/string.png +++ /dev/null diff --git a/tests/typ/base/color.typ b/tests/typ/base/color.typ index 96d76063..aecd86b8 100644 --- a/tests/typ/base/color.typ +++ b/tests/typ/base/color.typ @@ -1,4 +1,4 @@ -// Test color creation functions. +// Test color creation functions and modification methods. // Ref: false --- diff --git a/tests/typ/base/numbering.typ b/tests/typ/base/numbering.typ new file mode 100644 index 00000000..200850bc --- /dev/null +++ b/tests/typ/base/numbering.typ @@ -0,0 +1,13 @@ +// Test integrated numbering patterns. + +--- +#for i in range(9) { + numbering(i, "* and ") + numbering(i, "I") + [ for #i] + parbreak() +} + +--- +// Error: 12-14 must be at least zero +#numbering(-1, "1") diff --git a/tests/typ/base/string.typ b/tests/typ/base/string.typ index 3104a3ea..e724f563 100644 --- a/tests/typ/base/string.typ +++ b/tests/typ/base/string.typ @@ -136,26 +136,5 @@ #test(upper("Ελλάδα"), "ΕΛΛΆΔΑ") --- -// Test integrated lower, upper and symbols. -// Ref: true - -#upper("Abc 8") -#upper[def] - -#lower("SCREAMING MUST BE SILENCED in " + roman(1672) + " years") - -#for i in range(9) { - symbol(i) - [ and ] - roman(i) - [ for #i] - parbreak() -} - ---- // Error: 8-9 expected string or content, found integer #upper(1) - ---- -// Error: 9-11 must be at least zero -#symbol(-1) diff --git a/tests/typ/structure/enum.typ b/tests/typ/structure/enum.typ index 40aad625..d4c30385 100644 --- a/tests/typ/structure/enum.typ +++ b/tests/typ/structure/enum.typ @@ -12,7 +12,7 @@ --- // Test automatic numbering in summed content. #for i in range(5) { - [+ #roman(1 + i)] + [+ #numbering(1 + i, "I")] } --- @@ -42,7 +42,7 @@ start: 4, spacing: 0.65em - 3pt, tight: false, - label: n => text(fill: (red, green, blue)(mod(n, 3)), [#upper(letter(n))]), + label: n => text(fill: (red, green, blue)(mod(n, 3)), numbering(n, "A")), [Red], [Green], [Blue], ) |
