summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-06 10:05:11 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-06 10:05:11 +0200
commitbfaf5447a789cd0dbbb1e418bea62fef9edc2b7d (patch)
tree0cc1a47b37439fbeda06c57ebef0025becae0066 /tests
parent49b8574b8d03e52a990f7d7b009c36fbdad0d55a (diff)
Cast content from string
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/font.pngbin17334 -> 21070 bytes
-rw-r--r--tests/typ/style/show-node.typ4
-rw-r--r--tests/typ/text/font.typ8
3 files changed, 10 insertions, 2 deletions
diff --git a/tests/ref/text/font.png b/tests/ref/text/font.png
index 67251371..cce4897b 100644
--- a/tests/ref/text/font.png
+++ b/tests/ref/text/font.png
Binary files differ
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)