diff options
Diffstat (limited to 'tests/typ/graphics')
| -rw-r--r-- | tests/typ/graphics/line.typ | 4 | ||||
| -rw-r--r-- | tests/typ/graphics/shape-fill-stroke.typ | 30 |
2 files changed, 17 insertions, 17 deletions
diff --git a/tests/typ/graphics/line.typ b/tests/typ/graphics/line.typ index 452e52f3..050ce05c 100644 --- a/tests/typ/graphics/line.typ +++ b/tests/typ/graphics/line.typ @@ -34,10 +34,10 @@ #line(length: +30%, origin: (25.4%, 48%), angle: -36deg) #line(length: +30%, origin: (25.6%, 48%), angle: -72deg) #line(length: +32%, origin: (8.50%, 02%), angle: 34deg) - ] + ] ] -#align(center, grid(columns: (1fr, ) * 3, ..((star(20pt, thickness: .5pt), ) * 9))) +#align(center, grid(columns: (1fr,) * 3, ..((star(20pt, thickness: .5pt),) * 9))) --- // Test errors. diff --git a/tests/typ/graphics/shape-fill-stroke.typ b/tests/typ/graphics/shape-fill-stroke.typ index 935f3bc7..dd5b9ee8 100644 --- a/tests/typ/graphics/shape-fill-stroke.typ +++ b/tests/typ/graphics/shape-fill-stroke.typ @@ -1,22 +1,22 @@ // Test shape fill & stroke. --- -#let rect with (width: 20pt, height: 10pt) -#let items = for i, rect in ( - rect(stroke: none), - rect(), - rect(fill: none), - rect(thickness: 2pt), - rect(stroke: eastern), - rect(stroke: eastern, thickness: 2pt), - rect(fill: eastern), - rect(fill: eastern, stroke: none), - rect(fill: forest, stroke: none, thickness: 2pt), - rect(fill: forest, stroke: conifer), - rect(fill: forest, stroke: black, thickness: 2pt), - rect(fill: forest, stroke: conifer, thickness: 2pt), +#let variant = rect.with(width: 20pt, height: 10pt) +#let items = for i, item in ( + variant(stroke: none), + variant(), + variant(fill: none), + variant(thickness: 2pt), + variant(stroke: eastern), + variant(stroke: eastern, thickness: 2pt), + variant(fill: eastern), + variant(fill: eastern, stroke: none), + variant(fill: forest, stroke: none, thickness: 2pt), + variant(fill: forest, stroke: conifer), + variant(fill: forest, stroke: black, thickness: 2pt), + variant(fill: forest, stroke: conifer, thickness: 2pt), ) { - (align(horizon)[{i + 1}.], rect, []) + (align(horizon)[{i + 1}.], item, []) } #grid( |
