diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-09-16 16:41:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-16 14:41:18 +0000 |
| commit | 16e67f8bea7e6891e954420e2e005976fb48a528 (patch) | |
| tree | b1de8e17f184d10894447a602da1722a71dd23a9 /tests/suite/visualize/stroke.typ | |
| parent | db71a178bef7f1525d732a190ac75a1a6d56f24b (diff) | |
Shrink tests (#4967)
Diffstat (limited to 'tests/suite/visualize/stroke.typ')
| -rw-r--r-- | tests/suite/visualize/stroke.typ | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/suite/visualize/stroke.typ b/tests/suite/visualize/stroke.typ index b03c96c5..387e88cb 100644 --- a/tests/suite/visualize/stroke.typ +++ b/tests/suite/visualize/stroke.typ @@ -2,18 +2,18 @@ --- stroke-constructor --- // Converting to stroke -#assert.eq(stroke(red).paint, red) -#assert.eq(stroke(red).thickness, auto) -#assert.eq(stroke(2pt).paint, auto) -#assert.eq(stroke((cap: "round", paint: blue)).cap, "round") -#assert.eq(stroke((cap: auto, paint: blue)).cap, auto) -#assert.eq(stroke((cap: auto, paint: blue)).thickness, auto) +#test(stroke(red).paint, red) +#test(stroke(red).thickness, auto) +#test(stroke(2pt).paint, auto) +#test(stroke((cap: "round", paint: blue)).cap, "round") +#test(stroke((cap: auto, paint: blue)).cap, auto) +#test(stroke((cap: auto, paint: blue)).thickness, auto) // Constructing with named arguments -#assert.eq(stroke(paint: blue, thickness: 8pt), 8pt + blue) -#assert.eq(stroke(thickness: 2pt), stroke(2pt)) -#assert.eq(stroke(cap: "round").thickness, auto) -#assert.eq(stroke(cap: "round", thickness: auto).thickness, auto) +#test(stroke(paint: blue, thickness: 8pt), 8pt + blue) +#test(stroke(thickness: 2pt), stroke(2pt)) +#test(stroke(cap: "round").thickness, auto) +#test(stroke(cap: "round", thickness: auto).thickness, auto) --- stroke-constructor-unknown-key --- // Error: 9-21 unexpected key "foo", valid keys are "paint", "thickness", "cap", "join", "dash", and "miter-limit" |
