summaryrefslogtreecommitdiff
path: root/tests/typ/compiler/show-recursive.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-04-13 10:39:45 +0200
committerGitHub <noreply@github.com>2024-04-13 08:39:45 +0000
commit020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch)
treec0027ad22046e2726c22298461327823d6b88d53 /tests/typ/compiler/show-recursive.typ
parent72dd79210602ecc799726fc096b078afbb47f299 (diff)
Better test runner (#3922)
Diffstat (limited to 'tests/typ/compiler/show-recursive.typ')
-rw-r--r--tests/typ/compiler/show-recursive.typ51
1 files changed, 0 insertions, 51 deletions
diff --git a/tests/typ/compiler/show-recursive.typ b/tests/typ/compiler/show-recursive.typ
deleted file mode 100644
index 91a295f2..00000000
--- a/tests/typ/compiler/show-recursive.typ
+++ /dev/null
@@ -1,51 +0,0 @@
-// Test recursive show rules.
-
----
-// Test basic identity.
-#show heading: it => it
-= Heading
-
----
-// Test more recipes down the chain.
-#show list: scale.with(origin: left, x: 80%)
-#show heading: []
-#show enum: []
-- Actual
-- Tight
-- List
-= Nope
-
----
-// Test show rule in function.
-#let starwars(body) = {
- show list: it => block({
- stack(dir: ltr,
- text(red, it),
- 1fr,
- scale(x: -100%, text(blue, it)),
- )
- })
- body
-}
-
-- Normal list
-
-#starwars[
- - Star
- - Wars
- - List
-]
-
-- Normal list
-
----
-// Test multi-recursion with nested lists.
-#set rect(inset: 3pt)
-#show list: rect.with(stroke: blue)
-#show list: rect.with(stroke: red)
-#show list: block
-
-- List
- - Nested
- - List
-- Recursive!