diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-12-20 14:18:29 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-12-21 00:20:24 +0100 |
| commit | 11565a40b315212474f52eb576a9fd92b11f1132 (patch) | |
| tree | c6b7afb35103065bc92b407094ca905bb75cfc73 /tests/typ/elements/circle.typ | |
| parent | 958f74f77707340f34ee36d09492bdb74523aa2a (diff) | |
Set Rules Episode IX: The Rise of Testing
Diffstat (limited to 'tests/typ/elements/circle.typ')
| -rw-r--r-- | tests/typ/elements/circle.typ | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/tests/typ/elements/circle.typ b/tests/typ/elements/circle.typ deleted file mode 100644 index 8b795830..00000000 --- a/tests/typ/elements/circle.typ +++ /dev/null @@ -1,51 +0,0 @@ -// Test the `circle` function. - ---- -// Default circle. -#circle() -#circle[Hey] - ---- -// Test auto sizing. - -Auto-sized circle. \ -#circle(fill: rgb("eb5278"), thickness: 2pt, - align(center + horizon)[But, soft!] -) - -Center-aligned rect in auto-sized circle. -#circle(fill: forest, stroke: conifer, - align(center + horizon, - rect(fill: conifer, padding: 5pt)[But, soft!] - ) -) - -Rect in auto-sized circle. \ -#circle(fill: forest, - rect(fill: conifer, stroke: white, padding: 4pt)[ - #set text(8pt) - But, soft! what light through yonder window breaks? - ] -) - -Expanded by height. -#circle(stroke: black, align(center)[A \ B \ C]) - ---- -// Ensure circle directly in rect works. -#rect(width: 40pt, height: 30pt, fill: forest, circle(fill: conifer)) - ---- -// Test relative sizing. -#let centered(body) = align(center + horizon, body) -#set text(fill: white) -#rect(width: 100pt, height: 50pt, fill: rgb("aaa"), centered[ - #circle(radius: 10pt, fill: eastern, centered[A]) // D=20pt - #circle(height: 60%, fill: eastern, centered[B]) // D=30pt - #circle(width: 20% + 20pt, fill: eastern, centered[C]) // D=40pt -]) - ---- -// Radius wins over width and height. -// Error: 23-34 unexpected argument -#circle(radius: 10pt, width: 50pt, height: 100pt, fill: eastern) |
