From e674fd7e909c273c36952f01829544a2efc11c92 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 4 May 2022 22:14:57 +0200 Subject: New raw theme & nicer debug representation --- tests/typ/code/array.typ | 2 ++ tests/typ/code/call.typ | 1 - tests/typ/code/repr.typ | 15 ++++++++------- 3 files changed, 10 insertions(+), 8 deletions(-) (limited to 'tests/typ/code') 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 ` (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} \ -- cgit v1.2.3