diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-04 22:14:57 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-04 22:14:57 +0200 |
| commit | e674fd7e909c273c36952f01829544a2efc11c92 (patch) | |
| tree | c74218ce4a546de06b28aad2f73ba460338252b7 /tests/typ/code | |
| parent | 75472fee1a2377f56551fc856cf7511bd55091f0 (diff) | |
New raw theme & nicer debug representation
Diffstat (limited to 'tests/typ/code')
| -rw-r--r-- | tests/typ/code/array.typ | 2 | ||||
| -rw-r--r-- | tests/typ/code/call.typ | 1 | ||||
| -rw-r--r-- | tests/typ/code/repr.typ | 15 |
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} \ |
