diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-08 17:08:30 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-09 12:02:35 +0200 |
| commit | 29eb13ca6214461a4b0deb63d589cd39ad6d41c2 (patch) | |
| tree | c86797d440cfcc801c87a3c64f479e39f2c068b1 /tests/typ/code/repr.typ | |
| parent | 712c00ecb72b67da2c0788e5d3eb4dcc6366b2a7 (diff) | |
Sum color and length into stroke
Diffstat (limited to 'tests/typ/code/repr.typ')
| -rw-r--r-- | tests/typ/code/repr.typ | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/tests/typ/code/repr.typ b/tests/typ/code/repr.typ index f766ee7e..8742f413 100644 --- a/tests/typ/code/repr.typ +++ b/tests/typ/code/repr.typ @@ -1,17 +1,8 @@ // Test representation of values in the document. --- -// Variables. -#let name = "Typst" -#let ke-bab = "Kebab!" -#let α = "Alpha" - -{name} \ -{ke-bab} \ -{α} - ---- // Literal values. +{auto} \ {none} (empty) \ {true} \ {false} @@ -27,29 +18,30 @@ {4.5cm} \ {12e1pt} \ {2.5rad} \ -{45deg} +{45deg} \ +{1.7em} \ +{1cm + 0em} \ +{2em + 10pt} \ +{2.3fr} --- // Colors. -#rgb("f7a20500") +#rgb("f7a20500") \ +{2pt + rgb("f7a20500")} --- // Strings and escaping. -{"hi"} \ -{"a\n[]\"\u{1F680}string"} +#repr("hi") \ +#repr("a\n[]\"\u{1F680}string") --- // Content. -{[*{"H" + "i"} there*]} +#repr[*{"H" + "i"} there*] --- // Functions #let f(x) = x -{rect} \ +{() => none} \ {f} \ -{() => none} - ---- -// When using the `repr` function it's not in monospace. -#repr(23deg) +{rect} |
