summaryrefslogtreecommitdiff
path: root/tests/suite/math
diff options
context:
space:
mode:
Diffstat (limited to 'tests/suite/math')
-rw-r--r--tests/suite/math/attach.typ6
-rw-r--r--tests/suite/math/delimited.typ6
-rw-r--r--tests/suite/math/stretch.typ6
3 files changed, 18 insertions, 0 deletions
diff --git a/tests/suite/math/attach.typ b/tests/suite/math/attach.typ
index 9c92c62e..56fa47c5 100644
--- a/tests/suite/math/attach.typ
+++ b/tests/suite/math/attach.typ
@@ -170,3 +170,9 @@ $ attach(a^b, b: c) quad
$ a0 + a1 + a0_2 \
a1_2 + a0^2 + a1^2 $
+
+--- math-attach-scripts-extended-shapes ---
+// Test script attachments positioning if the base is an extended shape (or a
+// sequence of extended shapes).
+$lr(size: #130%, [x])_0^1, [x]_0^1, \]_0^1, x_0^1, A_0^1$ \
+$n^2, (n + 1)^2, sum_0^1, integral_0^1$
diff --git a/tests/suite/math/delimited.typ b/tests/suite/math/delimited.typ
index 9e11ec8b..fc00333d 100644
--- a/tests/suite/math/delimited.typ
+++ b/tests/suite/math/delimited.typ
@@ -115,6 +115,12 @@ $lr(body2, size: #50%)$
$ (1 / 2) $
})
+--- math-lr-scripts ---
+// Test interactions with script attachments.
+$ lr(size: #3em, |)_a^b lr(size: #3em, zws|)_a^b
+ lr(size: #3em, [x])_0^1 [x]_0^1
+ lr(size: #1em, lr(size: #10em, [x]))_0^1 $
+
--- issue-4188-lr-corner-brackets ---
// Test positioning of U+231C to U+231F
$⌜a⌟⌞b⌝$ = $⌜$$a$$⌟$$⌞$$b$$⌝$
diff --git a/tests/suite/math/stretch.typ b/tests/suite/math/stretch.typ
index 60696746..6bf13e25 100644
--- a/tests/suite/math/stretch.typ
+++ b/tests/suite/math/stretch.typ
@@ -35,6 +35,12 @@ $stretch(arrow.t)^"map"$
$stretch(arrow.t, size: #2em)^"map"$
$stretch(arrow.t, size: #200%)^"map"$
+--- math-stretch-vertical-scripts ---
+// Test vertical stretch interactions with script attachments.
+#let big = $stretch(|, size: #4em)$
+$ big_0^1 stretch(|, size: #1.5em)_0^1
+ stretch(big, size: #1em)_0^1 |_0^1 $
+
--- math-stretch-horizontal ---
// Test stretching along horizontal axis.
#let ext(sym) = math.stretch(sym, size: 2em)