summaryrefslogtreecommitdiff
path: root/tests/typ/code
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/code')
-rw-r--r--tests/typ/code/array.typ2
-rw-r--r--tests/typ/code/call.typ1
-rw-r--r--tests/typ/code/repr.typ15
3 files changed, 10 insertions, 8 deletions
diff --git a/tests/typ/code/array.typ b/tests/typ/code/array.typ
index cd163175..58b43ebf 100644
--- a/tests/typ/code/array.typ
+++ b/tests/typ/code/array.typ
@@ -4,6 +4,8 @@
---
// Ref: true
+#set page(width: 150pt)
+
// Empty.
{()}
diff --git a/tests/typ/code/call.typ b/tests/typ/code/call.typ
index 55471774..5b8b5b05 100644
--- a/tests/typ/code/call.typ
+++ b/tests/typ/code/call.typ
@@ -13,7 +13,6 @@
#f(1)[2](3)
// Don't parse this as a function.
-// Should output `<function test> (it)`.
#test (it)
#let f(body) = body
diff --git a/tests/typ/code/repr.typ b/tests/typ/code/repr.typ
index 8742f413..4d7a6cd5 100644
--- a/tests/typ/code/repr.typ
+++ b/tests/typ/code/repr.typ
@@ -25,23 +25,24 @@
{2.3fr}
---
-// Colors.
-#rgb("f7a20500") \
-{2pt + rgb("f7a20500")}
+// Colors and strokes.
+#set text(0.8em)
+#rgb("f7a205") \
+{2pt + rgb("f7a205")}
---
// Strings and escaping.
-#repr("hi") \
+#raw(repr("hi"), lang: "typc") \
#repr("a\n[]\"\u{1F680}string")
---
// Content.
-#repr[*{"H" + "i"} there*]
+#raw(repr[*{"H" + "i"} there*])
---
// Functions
#let f(x) = x
-{() => none} \
{f} \
-{rect}
+{rect} \
+{() => none} \