summaryrefslogtreecommitdiff
path: root/tests/typ/layout
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/layout')
-rw-r--r--tests/typ/layout/table.typ18
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")