diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/typ/bugs/math-realize.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/typ/bugs/math-realize.typ')
| -rw-r--r-- | tests/typ/bugs/math-realize.typ | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/tests/typ/bugs/math-realize.typ b/tests/typ/bugs/math-realize.typ deleted file mode 100644 index 10d8b78e..00000000 --- a/tests/typ/bugs/math-realize.typ +++ /dev/null @@ -1,47 +0,0 @@ -// Test that content in math can be realized without breaking -// nested equations. - ---- -#let my = $pi$ -#let f1 = box(baseline: 10pt, [f]) -#let f2 = context f1 -#show math.vec: [nope] - -$ pi a $ -$ my a $ -$ 1 + sqrt(x/2) + sqrt(#hide($x/2$)) $ -$ a x #link("url", $+ b$) $ -$ f f1 f2 $ -$ vec(1,2) * 2 $ - ---- -$ x^2 #hide[$(>= phi.alt) union y^2 0$] z^2 $ -Hello #hide[there $x$] -and #hide[$ f(x) := x^2 $] - ---- -// Test equations can embed equation pieces built by functions -#let foo(v1, v2) = { - // Return an equation piece that would've been rendered in - // inline style if the piece is not embedded - $v1 v2^2$ -} -#let bar(v1, v2) = { - // Return an equation piece that would've been rendered in - // block style if the piece is not embedded - $ v1 v2^2 $ -} -#let baz(..sink) = { - // Return an equation piece built by joining arrays - sink.pos().map(x => $hat(#x)$).join(sym.and) -} - -Inline $2 foo(alpha, (M+foo(a, b)))$. - -Inline $2 bar(alpha, (M+foo(a, b)))$. - -Inline $2 baz(x,y,baz(u, v))$. - -$ 2 foo(alpha, (M+foo(a, b))) $ -$ 2 bar(alpha, (M+foo(a, b))) $ -$ 2 baz(x,y,baz(u, v)) $ |
