From 020294fca9a7065d4b9cf4e677f606ebaaa29b00 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 13 Apr 2024 10:39:45 +0200 Subject: Better test runner (#3922) --- tests/typ/math/class.typ | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 tests/typ/math/class.typ (limited to 'tests/typ/math/class.typ') diff --git a/tests/typ/math/class.typ b/tests/typ/math/class.typ deleted file mode 100644 index a5901b31..00000000 --- a/tests/typ/math/class.typ +++ /dev/null @@ -1,47 +0,0 @@ -// Test math classes. - ---- -// Test characters. -$ a class("normal", +) b \ - a class("binary", .) b \ - lr(class("opening", \/) a/b class("closing", \\)) \ - { x class("fence", \;) x > 0} \ - a class("large", \/) b \ - a class("punctuation", :) b \ - a class("relation", ~) b \ - a + class("unary", times) b \ - class("vary", :) a class("vary", :) b $ - ---- -// Test custom content. -#let dotsq = square( - size: 0.7em, - stroke: 0.5pt, - align(center+horizon, circle(radius: 0.15em, fill: black)) -) - -$ a dotsq b \ - a class("normal", dotsq) b \ - a class("vary", dotsq) b \ - a + class("vary", dotsq) b \ - a class("punctuation", dotsq) b $ - ---- -// Test nested. -#let normal = math.class.with("normal") -#let pluseq = $class("binary", normal(+) normal(=))$ -$ a pluseq 5 $ - ---- -// Test exceptions. -$ sqrt(3)\/2 quad d_0.d_1d_2 dots $ - ---- -// Test if the math class changes the limit configuration. -$ class("normal", ->)_a $ -$class("relation", x)_a$ -$ class("large", x)_a $ -$class("large", ->)_a$ - -$limits(class("normal", ->))_a$ -$ scripts(class("relation", x))_a $ -- cgit v1.2.3