summaryrefslogtreecommitdiff
path: root/tests/typ/meta/context-compatibility.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/meta/context-compatibility.typ
parent72dd79210602ecc799726fc096b078afbb47f299 (diff)
Better test runner (#3922)
Diffstat (limited to 'tests/typ/meta/context-compatibility.typ')
-rw-r--r--tests/typ/meta/context-compatibility.typ29
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/typ/meta/context-compatibility.typ b/tests/typ/meta/context-compatibility.typ
deleted file mode 100644
index 60124255..00000000
--- a/tests/typ/meta/context-compatibility.typ
+++ /dev/null
@@ -1,29 +0,0 @@
-// Test compatibility with the pre-context way of things.
-// Ref: false
-
----
-#let s = state("x", 0)
-#let compute(expr) = [
- #s.update(x =>
- eval(expr.replace("x", str(x)))
- )
- New value is #s.display().
-]
-
-#locate(loc => {
- let elem = query(<here>, loc).first()
- test(s.at(elem.location()), 13)
-})
-
-#compute("10") \
-#compute("x + 3") \
-*Here.* <here> \
-#compute("x * 2") \
-#compute("x - 5")
-
----
-#style(styles => measure([it], styles).width < 20pt)
-
----
-#counter(heading).update(10)
-#counter(heading).display(n => test(n, 10))