summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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
+$