diff options
Diffstat (limited to 'tests/typ/basics')
| -rw-r--r-- | tests/typ/basics/enum.typ | 13 | ||||
| -rw-r--r-- | tests/typ/basics/terms.typ | 2 |
2 files changed, 9 insertions, 6 deletions
diff --git a/tests/typ/basics/enum.typ b/tests/typ/basics/enum.typ index e651ca31..c1ce17b7 100644 --- a/tests/typ/basics/enum.typ +++ b/tests/typ/basics/enum.typ @@ -39,11 +39,14 @@ --- // Test numbering with closure. #enum( - start: 4, - spacing: 0.65em - 3pt, - tight: false, - numbering: n => text(fill: (red, green, blue)(mod(n, 3)), numbering("A", n)), - [Red], [Green], [Blue], + start: 4, + spacing: 0.65em - 3pt, + tight: false, + numbering: n => text( + fill: (red, green, blue).at(mod(n, 3)), + numbering("A", n), + ), + [Red], [Green], [Blue], ) --- diff --git a/tests/typ/basics/terms.typ b/tests/typ/basics/terms.typ index ba23f909..204defbf 100644 --- a/tests/typ/basics/terms.typ +++ b/tests/typ/basics/terms.typ @@ -40,7 +40,7 @@ No: list \ #show terms: it => table( columns: 2, inset: 3pt, - ..it.items.map(item => (emph(item(0)), item(1))).flatten(), + ..it.items.map(item => (emph(item.at(0)), item.at(1))).flatten(), ) / A: One letter |
