summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-09-06 12:07:37 +0200
committerLaurenz <laurmaedje@gmail.com>2023-09-06 12:07:37 +0200
commitfe402759c03eb93cefc2879e751b8e732891bd3e (patch)
tree8e98256cf4f839e72e53836d00a0ecdc7ad4854b /tests
parentb76e8d5db9bea8fb63e65fe7a54db6bbae1cf842 (diff)
Don't automatically match fences
Fixes #306
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math/delimited.pngbin23332 -> 25691 bytes
-rw-r--r--tests/typ/math/attach-p2.typ2
-rw-r--r--tests/typ/math/delimited.typ6
-rw-r--r--tests/typ/math/spacing.typ2
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/ref/math/delimited.png b/tests/ref/math/delimited.png
index 2788058f..c83764ec 100644
--- a/tests/ref/math/delimited.png
+++ b/tests/ref/math/delimited.png
Binary files differ
diff --git a/tests/typ/math/attach-p2.typ b/tests/typ/math/attach-p2.typ
index f618f21a..8f97f74f 100644
--- a/tests/typ/math/attach-p2.typ
+++ b/tests/typ/math/attach-p2.typ
@@ -23,5 +23,5 @@ $ (-1)^n + (1/2 + 3)^(-1/2) $
$ x_1 p_1 frak(p)_1 2_1 dot_1 lg_1 !_1 \\_1 ]_1 "ip"_1 op("iq")_1 \
x^1 b^1 frak(b)^1 2^1 dot^1 lg^1 !^1 \\^1 ]^1 "ib"^1 op("id")^1 \
x_1 y_1 "_"_1 x^1 l^1 "`"^1 attach(I,tl:1,bl:1,tr:1,br:1)
- scripts(sum)_1^1 integral_1^1 |1/2|_1^1 \
+ scripts(sum)_1^1 integral_1^1 abs(1/2)_1^1 \
x^1_1, "("b y")"^1_1 != (b y)^1_1, "[∫]"_1 [integral]_1 $
diff --git a/tests/typ/math/delimited.typ b/tests/typ/math/delimited.typ
index 24374b8c..e5b93cd6 100644
--- a/tests/typ/math/delimited.typ
+++ b/tests/typ/math/delimited.typ
@@ -2,8 +2,8 @@
---
// Test automatic matching.
-$ (a) + {b/2} + |a|/2 + (b) $
-$f(x/2) < zeta(c^2 + |a + b/2|)$
+$ (a) + {b/2} + abs(a)/2 + (b) $
+$f(x/2) < zeta(c^2 + abs(a + b/2))$
---
// Test unmatched.
@@ -17,7 +17,7 @@ $ lr(| ]1,2\[ + 1/2|) $
---
// Test fence confusion.
$ |x + |y| + z/a| \
- |x + lr(|y|) + z/a| $
+ lr(|x + |y| + z/a|) $
---
// Test that symbols aren't matched automatically.
diff --git a/tests/typ/math/spacing.typ b/tests/typ/math/spacing.typ
index 9b64d92d..e62d2eb3 100644
--- a/tests/typ/math/spacing.typ
+++ b/tests/typ/math/spacing.typ
@@ -4,7 +4,7 @@
// Test spacing cases.
$ä, +, c, (, )$ \
$=), (+), {times}$
-$⟧<⟦, |-|, [=$ \
+$⟧<⟦, abs(-), [=$ \
$a=b, a==b$ \
$-a, +a$ \
$a not b$ \