summaryrefslogtreecommitdiff
path: root/tests/typ/code
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-10 16:46:01 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-10 16:46:01 +0200
commit5611c26577c4cf6d52b9b66b7b1a32253aa23ec1 (patch)
treeb06a64845ef691700aed7fd0ed1e22dd064cc742 /tests/typ/code
parentbce553a991f19b2b5bb9efef6b74bd12e15a10c6 (diff)
Restructure tests
Diffstat (limited to 'tests/typ/code')
-rw-r--r--tests/typ/code/repr.typ14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/typ/code/repr.typ b/tests/typ/code/repr.typ
index f2404510..eacbf8e8 100644
--- a/tests/typ/code/repr.typ
+++ b/tests/typ/code/repr.typ
@@ -2,7 +2,6 @@
---
// Variables.
-
#let name = "Typst"
#let ke-bab = "Kebab!"
#let α = "Alpha"
@@ -31,9 +30,7 @@
{4.5cm} \
{12e1pt} \
{2.5rad} \
-{45deg} \
-// Not in monospace via repr.
-#repr(45deg)
+{45deg}
---
// Colors.
@@ -55,3 +52,12 @@
{rect} \
{f} \
{() => none}
+
+---
+// Test using the `repr` function.
+
+// Returns a string.
+#test(repr((1, 2, false, )), "(1, 2, false)")
+
+// Not in monospace
+#repr(23deg)