diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/text/font.png | bin | 17334 -> 21070 bytes | |||
| -rw-r--r-- | tests/typ/style/show-node.typ | 4 | ||||
| -rw-r--r-- | tests/typ/text/font.typ | 8 |
3 files changed, 10 insertions, 2 deletions
diff --git a/tests/ref/text/font.png b/tests/ref/text/font.png Binary files differindex 67251371..cce4897b 100644 --- a/tests/ref/text/font.png +++ b/tests/ref/text/font.png diff --git a/tests/typ/style/show-node.typ b/tests/typ/style/show-node.typ index 07c30f19..d0586c9d 100644 --- a/tests/typ/style/show-node.typ +++ b/tests/typ/style/show-node.typ @@ -49,8 +49,8 @@ Some more text. Another text. --- -// Error: 18-22 expected content, found string -#show heading as "hi" +// Error: 18-22 expected content, found integer +#show heading as 1234 = Heading --- diff --git a/tests/typ/text/font.typ b/tests/typ/text/font.typ index b2909182..bfec3e1c 100644 --- a/tests/typ/text/font.typ +++ b/tests/typ/text/font.typ @@ -39,6 +39,14 @@ Emoji: 🐪, 🌋, 🏞 2π = 𝛼 + 𝛽. ✅ --- +// Test string body. +#text("Text") \ +#text(red, "Text") \ +#text("Ubuntu", blue, "Text") \ +#text([Text], teal, "IBM Plex Serif") \ +#text(forest, "Latin Modern Roman", [Text]) \ + +--- // Error: 11-16 unexpected argument #set text(false) |
