summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLeedehai <18319900+Leedehai@users.noreply.github.com>2024-07-08 15:32:58 -0400
committerGitHub <noreply@github.com>2024-07-08 19:32:58 +0000
commitd1c7d08893ef293e74ac0763005e1dd3f46e6495 (patch)
treedb36da3cb751f7c79ee633fbdda786276e3b3d9e /tests
parent86af5b5f61d4cbfdf0c40a84784b5c890c8b9a45 (diff)
Primes should not further raise next superscript's position (#4492)
Co-authored-by: Ian Wrzesinski <133046678+wrzian@users.noreply.github.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math-primes-complex.pngbin1274 -> 1652 bytes
-rw-r--r--tests/ref/math-primes-with-superscript.pngbin0 -> 956 bytes
-rw-r--r--tests/suite/math/primes.typ15
3 files changed, 14 insertions, 1 deletions
diff --git a/tests/ref/math-primes-complex.png b/tests/ref/math-primes-complex.png
index 5f5558eb..0e85d08d 100644
--- a/tests/ref/math-primes-complex.png
+++ b/tests/ref/math-primes-complex.png
Binary files differ
diff --git a/tests/ref/math-primes-with-superscript.png b/tests/ref/math-primes-with-superscript.png
new file mode 100644
index 00000000..88a892b9
--- /dev/null
+++ b/tests/ref/math-primes-with-superscript.png
Binary files differ
diff --git a/tests/suite/math/primes.typ b/tests/suite/math/primes.typ
index e10f8876..78bb915a 100644
--- a/tests/suite/math/primes.typ
+++ b/tests/suite/math/primes.typ
@@ -12,7 +12,11 @@ $a'_b^c$, $a_b'^c$, $a_b^c'$, $a_b'^c'^d'$
$(a'_b')^(c'_d')$, $a'/b'$, $a_b'/c_d'$
-$∫'$, $∑'$, $ ∑'_S' $
+$∫'$, $∑'$, $a'^2^2$, $a'_2_2$
+
+$f_n'^a'$, $f^a'_n'$
+
+$ ∑'_S' $
--- math-primes-attach ---
// Test attaching primes only
@@ -48,3 +52,12 @@ $
#g''''''''''''''''' \
gg'
$
+
+--- math-primes-with-superscript ---
+// Test prime symbols don't raise the superscript position
+$
+ sqrt(f)/f
+ sqrt(f^2)/f^2
+ sqrt(f'^2)/f'^2
+ sqrt(f''_n^2)/f''^2_n
+$