summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/issue-4828-math-number-multi-char.pngbin0 -> 465 bytes
-rw-r--r--tests/ref/math-frac-precedence.pngbin5504 -> 3586 bytes
-rw-r--r--tests/suite/math/frac.typ4
-rw-r--r--tests/suite/math/syntax.typ4
4 files changed, 6 insertions, 2 deletions
diff --git a/tests/ref/issue-4828-math-number-multi-char.png b/tests/ref/issue-4828-math-number-multi-char.png
new file mode 100644
index 00000000..ff0a9bab
--- /dev/null
+++ b/tests/ref/issue-4828-math-number-multi-char.png
Binary files differ
diff --git a/tests/ref/math-frac-precedence.png b/tests/ref/math-frac-precedence.png
index 973c433e..fd16f2e6 100644
--- a/tests/ref/math-frac-precedence.png
+++ b/tests/ref/math-frac-precedence.png
Binary files differ
diff --git a/tests/suite/math/frac.typ b/tests/suite/math/frac.typ
index 7f513930..3bd00eab 100644
--- a/tests/suite/math/frac.typ
+++ b/tests/suite/math/frac.typ
@@ -37,8 +37,8 @@ $ 1/2/3 = (1/2)/3 = 1/(2/3) $
// Test precedence.
$ a_1/b_2, 1/f(x), zeta(x)/2, "foo"[|x|]/2 \
1.2/3.7, 2.3^3.4 \
- 🏳️‍🌈[x]/2, f [x]/2, phi [x]/2, 🏳️‍🌈 [x]/2 \
- +[x]/2, 1(x)/2, 2[x]/2 \
+ f [x]/2, phi [x]/2 \
+ +[x]/2, 1(x)/2, 2[x]/2, 🏳️‍🌈[x]/2 \
(a)b/2, b(a)[b]/2 \
n!/2, 5!/2, n !/2, 1/n!, 1/5! $
diff --git a/tests/suite/math/syntax.typ b/tests/suite/math/syntax.typ
index 7091d908..32b9c098 100644
--- a/tests/suite/math/syntax.typ
+++ b/tests/suite/math/syntax.typ
@@ -28,6 +28,10 @@ $ dot \ dots \ ast \ tilde \ star $
$floor(phi.alt.)$
$floor(phi.alt. )$
+--- issue-4828-math-number-multi-char ---
+// Numbers should parse the same regardless of number of characters.
+$1/2(x)$ vs. $1/10(x)$
+
--- math-unclosed ---
// Error: 1-2 unclosed delimiter
$a