summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math-lr-ignore-ignorant.pngbin0 -> 970 bytes
-rw-r--r--tests/suite/math/delimited.typ17
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/ref/math-lr-ignore-ignorant.png b/tests/ref/math-lr-ignore-ignorant.png
new file mode 100644
index 00000000..b82a827f
--- /dev/null
+++ b/tests/ref/math-lr-ignore-ignorant.png
Binary files differ
diff --git a/tests/suite/math/delimited.typ b/tests/suite/math/delimited.typ
index d6e1d864..9e11ec8b 100644
--- a/tests/suite/math/delimited.typ
+++ b/tests/suite/math/delimited.typ
@@ -98,6 +98,23 @@ $lr(lr(|, size: #4em), size: #50%)$
$lr(body1, size: #50%)$
$lr(body2, size: #50%)$
+--- math-lr-ignore-ignorant ---
+// Test ignoring leading and trailing ignorant fragments.
+#box($ (1 / 2) $)
+#box({
+ show "(": it => context it
+ $ (1 / 2) $
+})
+#box({
+ show ")": it => context it
+ $ (1 / 2) $
+})
+#box({
+ show "(": it => context it
+ show ")": it => context it
+ $ (1 / 2) $
+})
+
--- issue-4188-lr-corner-brackets ---
// Test positioning of U+231C to U+231F
$⌜a⌟⌞b⌝$ = $⌜$$a$$⌟$$⌞$$b$$⌝$