diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typ/structure/table.typ | 6 | ||||
| -rw-r--r-- | tests/typ/text/par.typ | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/typ/structure/table.typ b/tests/typ/structure/table.typ index 57b71ede..527141c5 100644 --- a/tests/typ/structure/table.typ +++ b/tests/typ/structure/table.typ @@ -2,7 +2,7 @@ --- #set page(height: 70pt) -#set table(primary: rgb("aaa"), secondary: none) +#set table(fill: (x, y) => if even(x + y) { rgb("aaa") }) #table( columns: (1fr,) * 3, @@ -16,3 +16,7 @@ --- // Ref: false #table() + +--- +// Error: 14-19 expected color or none or function, found string +#table(fill: "hey") diff --git a/tests/typ/text/par.typ b/tests/typ/text/par.typ index 64a2dd17..059653c5 100644 --- a/tests/typ/text/par.typ +++ b/tests/typ/text/par.typ @@ -26,7 +26,7 @@ Fourth #set par(spacing: 100pt) #set table(around: 5pt) Hello -#table(columns: 4, secondary: silver)[A][B][C][D] +#table(columns: 4, fill: (x, y) => if odd(x + y) { silver })[A][B][C][D] --- // While we're at it, test the larger block spacing wins. |
