From 5611c26577c4cf6d52b9b66b7b1a32253aa23ec1 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 10 Jun 2021 16:46:01 +0200 Subject: Restructure tests --- tests/typ/code/repr.typ | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'tests/typ/code') 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) -- cgit v1.2.3