diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-09-11 14:42:43 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-09-11 14:42:43 +0200 |
| commit | 305524d005df075d53575552ee090fb53192a3fe (patch) | |
| tree | 08b739e8fc41057b79a2d7ea7a7208ca358d60b3 /tests/typ/layout | |
| parent | b471ac7d590abd2398ce25193b4e4df373bf2e9c (diff) | |
Update tests for type system changes
Diffstat (limited to 'tests/typ/layout')
| -rw-r--r-- | tests/typ/layout/align.typ | 10 | ||||
| -rw-r--r-- | tests/typ/layout/enum-align.typ | 5 |
2 files changed, 11 insertions, 4 deletions
diff --git a/tests/typ/layout/align.typ b/tests/typ/layout/align.typ index 753683de..98ee8da5 100644 --- a/tests/typ/layout/align.typ +++ b/tests/typ/layout/align.typ @@ -35,9 +35,9 @@ --- // Ref: false -#test(type(center), "alignment") -#test(type(horizon), "alignment") -#test(type(center + horizon), "2d alignment") +#test(type(center), alignment) +#test(type(horizon), alignment) +#test(type(center + horizon), alignment) --- // Error: 8-22 cannot add two horizontal alignments @@ -46,3 +46,7 @@ --- // Error: 8-20 cannot add two vertical alignments #align(top + bottom, [A]) + +--- +// Error: 8-30 cannot add a vertical and a 2D alignment +#align(top + (bottom + right), [A]) diff --git a/tests/typ/layout/enum-align.typ b/tests/typ/layout/enum-align.typ index 9d11235c..7cfa5505 100644 --- a/tests/typ/layout/enum-align.typ +++ b/tests/typ/layout/enum-align.typ @@ -33,9 +33,12 @@ --- // Test valid number align values (horizontal) +// Ref: false #set enum(number-align: start) #set enum(number-align: end) #set enum(number-align: left) #set enum(number-align: right) -// Error: 25-28 alignment must be horizontal + +--- +// Error: 25-28 expected `start`, `left`, `center`, `right`, or `end`, found top #set enum(number-align: top) |
