summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjassler <erifetim@gmail.com>2023-05-12 12:26:14 +0200
committerGitHub <noreply@github.com>2023-05-12 12:26:14 +0200
commitfd84d23ade16fea22e8f8413a5d29c95c2ee1d84 (patch)
tree9cdc3caee2a0ad36d8f03b2ada148f1c87f3e317 /tests
parenta8728be9b03f6f19df6adf1ea26a4713562dc0ae (diff)
Support for align parameter in table to take an array (#1087) (#1149)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/layout/table.pngbin5170 -> 7530 bytes
-rw-r--r--tests/typ/layout/table.typ18
2 files changed, 17 insertions, 1 deletions
diff --git a/tests/ref/layout/table.png b/tests/ref/layout/table.png
index 340d93a7..5c8dbf0e 100644
--- a/tests/ref/layout/table.png
+++ b/tests/ref/layout/table.png
Binary files differ
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")