summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/raw.pngbin18101 -> 19645 bytes
-rw-r--r--tests/typ/math/syntax.typ3
-rw-r--r--tests/typ/text/raw.typ5
3 files changed, 6 insertions, 2 deletions
diff --git a/tests/ref/text/raw.png b/tests/ref/text/raw.png
index f7912051..e2fd87d0 100644
--- a/tests/ref/text/raw.png
+++ b/tests/ref/text/raw.png
Binary files differ
diff --git a/tests/typ/math/syntax.typ b/tests/typ/math/syntax.typ
index 80facfb2..8ffded29 100644
--- a/tests/typ/math/syntax.typ
+++ b/tests/typ/math/syntax.typ
@@ -1,11 +1,10 @@
#set page(width: auto)
-#set text("Latin Modern Roman")
#show <table>: it => table(
columns: 2,
inset: 8pt,
..it.text
.split("\n")
- .map(line => (text(10pt, raw(line, lang: "typ")), eval(line) + [ ]))
+ .map(line => (raw(line, lang: "typ"), text("Latin Modern Roman", eval(line))))
.flatten()
)
diff --git a/tests/typ/text/raw.typ b/tests/typ/text/raw.typ
index 96a23b66..f8731cca 100644
--- a/tests/typ/text/raw.typ
+++ b/tests/typ/text/raw.typ
@@ -45,6 +45,11 @@ The keyword ```rust let```.
```
---
+// Text show rule
+#show raw: set text("Roboto")
+`Roboto`
+
+---
// Unterminated.
// Error: 2:1 expected 1 backtick
`endless