diff options
| author | jassler <erifetim@gmail.com> | 2023-05-12 12:26:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-12 12:26:14 +0200 |
| commit | fd84d23ade16fea22e8f8413a5d29c95c2ee1d84 (patch) | |
| tree | 9cdc3caee2a0ad36d8f03b2ada148f1c87f3e317 /tests/typ/layout/table.typ | |
| parent | a8728be9b03f6f19df6adf1ea26a4713562dc0ae (diff) | |
Support for align parameter in table to take an array (#1087) (#1149)
Diffstat (limited to 'tests/typ/layout/table.typ')
| -rw-r--r-- | tests/typ/layout/table.typ | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/typ/layout/table.typ b/tests/typ/layout/table.typ index 5d423e03..5526c4f6 100644 --- a/tests/typ/layout/table.typ +++ b/tests/typ/layout/table.typ @@ -14,9 +14,25 @@ #table(columns: 3, stroke: none, fill: green, [A], [B], [C]) --- +// Test alignment with array. +#table( + columns: (1fr, 1fr, 1fr), + align: (left, center, right), + [A], [B], [C] +) + +// Test empty array. +#set align(center) +#table( + columns: (1fr, 1fr, 1fr), + align: (), + [A], [B], [C] +) + +--- // Ref: false #table() --- -// Error: 14-19 expected color, none, or function, found string +// Error: 14-19 expected color, none, array, or function, found string #table(fill: "hey") |
