diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/typ/text/edge.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/typ/text/edge.typ')
| -rw-r--r-- | tests/typ/text/edge.typ | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/tests/typ/text/edge.typ b/tests/typ/text/edge.typ deleted file mode 100644 index 053576e8..00000000 --- a/tests/typ/text/edge.typ +++ /dev/null @@ -1,39 +0,0 @@ -// Test top and bottom text edge. - ---- -#set page(width: 160pt) -#set text(size: 8pt) - -#let try(top, bottom) = rect(inset: 0pt, fill: conifer)[ - #set text(font: "IBM Plex Mono", top-edge: top, bottom-edge: bottom) - From #top to #bottom -] - -#let try-bounds(top, bottom) = rect(inset: 0pt, fill: conifer)[ - #set text(font: "IBM Plex Mono", top-edge: top, bottom-edge: bottom) - #top to #bottom: "yay, Typst" -] - -#try("ascender", "descender") -#try("ascender", "baseline") -#try("cap-height", "baseline") -#try("x-height", "baseline") -#try-bounds("cap-height", "baseline") -#try-bounds("bounds", "baseline") -#try-bounds("bounds", "bounds") -#try-bounds("x-height", "bounds") - -#try(4pt, -2pt) -#try(1pt + 0.3em, -0.15em) - ---- -// Error: 21-23 expected "ascender", "cap-height", "x-height", "baseline", "bounds", or length, found array -#set text(top-edge: ()) - ---- -// Error: 24-26 expected "baseline", "descender", "bounds", or length -#set text(bottom-edge: "") - ---- -// Error: 24-36 expected "baseline", "descender", "bounds", or length -#set text(bottom-edge: "cap-height") |
