summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math-accent-sized-script.pngbin0 -> 331 bytes
-rw-r--r--tests/ref/math-spacing-script.pngbin0 -> 346 bytes
-rw-r--r--tests/suite/math/accent.typ4
-rw-r--r--tests/suite/math/spacing.typ4
4 files changed, 8 insertions, 0 deletions
diff --git a/tests/ref/math-accent-sized-script.png b/tests/ref/math-accent-sized-script.png
new file mode 100644
index 00000000..cf468dd1
--- /dev/null
+++ b/tests/ref/math-accent-sized-script.png
Binary files differ
diff --git a/tests/ref/math-spacing-script.png b/tests/ref/math-spacing-script.png
new file mode 100644
index 00000000..3ded9622
--- /dev/null
+++ b/tests/ref/math-spacing-script.png
Binary files differ
diff --git a/tests/suite/math/accent.typ b/tests/suite/math/accent.typ
index 9f57d69b..87ed8158 100644
--- a/tests/suite/math/accent.typ
+++ b/tests/suite/math/accent.typ
@@ -31,3 +31,7 @@ $ tilde(integral), tilde(integral)_a^b, tilde(integral_a^b) $
--- math-accent-sized ---
// Test accent size.
$tilde(sum), tilde(sum, size: #50%), accent(H, hat, size: #200%)$
+
+--- math-accent-sized-script ---
+// Test accent size in script size.
+$tilde(U, size: #1.1em), x^tilde(U, size: #1.1em), sscript(tilde(U, size: #1.1em))$
diff --git a/tests/suite/math/spacing.typ b/tests/suite/math/spacing.typ
index 707c09bb..db8b905c 100644
--- a/tests/suite/math/spacing.typ
+++ b/tests/suite/math/spacing.typ
@@ -49,6 +49,10 @@ $integral f(x) thin dif x$,
// Both are weak, collide
$integral f(x) #h(0.166em, weak: true)dif x$
+--- math-spacing-script ---
+// Test spacing in script size
+$x^(a #h(1em) b) + x^x^(a #h(1em) b) + sscript(a #h(1em) b)$
+
--- math-spacing-ignorant ---
// Test spacing with ignorant elements
$#metadata(none) "text"$ \