summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Wrzesinski <wrzian@umich.edu>2025-01-20 14:39:26 -0500
committerIan Wrzesinski <wrzian@umich.edu>2025-01-23 16:30:29 -0500
commit6fe1e20afb9e2fb276242613121206b0001cce82 (patch)
tree0b4325e2541bcabcd6417b4c8ae4d90987e18e62 /tests
parent7838da02ec8a9ffbdfa61ed3dfedb24557a0e49c (diff)
Update math TextElem layout to separate out SymbolElem
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math-equation-auto-wrapping.pngbin160 -> 159 bytes
-rw-r--r--tests/ref/math-mat-align-explicit-alternating.pngbin1009 -> 1035 bytes
-rw-r--r--tests/ref/math-mat-align-explicit-left.pngbin992 -> 989 bytes
-rw-r--r--tests/ref/math-mat-align-explicit-right.pngbin1028 -> 976 bytes
-rw-r--r--tests/ref/math-mat-align-implicit.pngbin1027 -> 1046 bytes
-rw-r--r--tests/ref/math-vec-align-explicit-alternating.pngbin1009 -> 1035 bytes
-rw-r--r--tests/suite/foundations/content.typ2
-rw-r--r--tests/suite/math/alignment.typ8
-rw-r--r--tests/suite/math/delimited.typ4
-rw-r--r--tests/suite/math/stretch.typ6
10 files changed, 10 insertions, 10 deletions
diff --git a/tests/ref/math-equation-auto-wrapping.png b/tests/ref/math-equation-auto-wrapping.png
index 9c600172..2476d668 100644
--- a/tests/ref/math-equation-auto-wrapping.png
+++ b/tests/ref/math-equation-auto-wrapping.png
Binary files differ
diff --git a/tests/ref/math-mat-align-explicit-alternating.png b/tests/ref/math-mat-align-explicit-alternating.png
index 37e8dc06..1ebcc7b6 100644
--- a/tests/ref/math-mat-align-explicit-alternating.png
+++ b/tests/ref/math-mat-align-explicit-alternating.png
Binary files differ
diff --git a/tests/ref/math-mat-align-explicit-left.png b/tests/ref/math-mat-align-explicit-left.png
index 09ce9398..cb981924 100644
--- a/tests/ref/math-mat-align-explicit-left.png
+++ b/tests/ref/math-mat-align-explicit-left.png
Binary files differ
diff --git a/tests/ref/math-mat-align-explicit-right.png b/tests/ref/math-mat-align-explicit-right.png
index 3592c0cf..b537e657 100644
--- a/tests/ref/math-mat-align-explicit-right.png
+++ b/tests/ref/math-mat-align-explicit-right.png
Binary files differ
diff --git a/tests/ref/math-mat-align-implicit.png b/tests/ref/math-mat-align-implicit.png
index 0c508efc..b184d914 100644
--- a/tests/ref/math-mat-align-implicit.png
+++ b/tests/ref/math-mat-align-implicit.png
Binary files differ
diff --git a/tests/ref/math-vec-align-explicit-alternating.png b/tests/ref/math-vec-align-explicit-alternating.png
index 37e8dc06..1ebcc7b6 100644
--- a/tests/ref/math-vec-align-explicit-alternating.png
+++ b/tests/ref/math-vec-align-explicit-alternating.png
Binary files differ
diff --git a/tests/suite/foundations/content.typ b/tests/suite/foundations/content.typ
index 9ddee597..c3c119e3 100644
--- a/tests/suite/foundations/content.typ
+++ b/tests/suite/foundations/content.typ
@@ -85,7 +85,7 @@
[With ]
vars
.pairs()
- .map(((name, value)) => $name = value$)
+ .map(((name, value)) => $#symbol(name) = value$)
.join(", ", last: " and ")
[ we have:]
$ equation = result $
diff --git a/tests/suite/math/alignment.typ b/tests/suite/math/alignment.typ
index 63033ef5..941c2055 100644
--- a/tests/suite/math/alignment.typ
+++ b/tests/suite/math/alignment.typ
@@ -4,10 +4,10 @@
// Test alignment step functions.
#set page(width: 225pt)
$
-"a" &= c \
-&= c + 1 & "By definition" \
-&= d + 100 + 1000 \
-&= x && "Even longer" \
+a &= c \
+ &= c + 1 & "By definition" \
+ &= d + 100 + 1000 \
+ &= x && "Even longer" \
$
--- math-align-post-fix ---
diff --git a/tests/suite/math/delimited.typ b/tests/suite/math/delimited.typ
index ca82427d..794ffd8a 100644
--- a/tests/suite/math/delimited.typ
+++ b/tests/suite/math/delimited.typ
@@ -41,8 +41,8 @@ $floor(x/2), ceil(x/2), abs(x), norm(x)$
--- math-lr-color ---
// Test colored delimiters
$ lr(
- text("(", fill: #green) a/b
- text(")", fill: #blue)
+ text(\(, fill: #green) a/b
+ text(\), fill: #blue)
) $
--- math-lr-mid ---
diff --git a/tests/suite/math/stretch.typ b/tests/suite/math/stretch.typ
index 1377f4d2..d145f72a 100644
--- a/tests/suite/math/stretch.typ
+++ b/tests/suite/math/stretch.typ
@@ -63,8 +63,8 @@ $ ext(bar.v) quad ext(bar.v.double) quad
// Test stretch when base is given with shorthand.
$stretch(||, size: #2em)$
$stretch(\(, size: #2em)$
-$stretch("⟧", size: #2em)$
-$stretch("|", size: #2em)$
+$stretch(⟧, size: #2em)$
+$stretch(|, size: #2em)$
$stretch(->, size: #2em)$
$stretch(↣, size: #2em)$
@@ -87,7 +87,7 @@ $ body^"text" $
#{
let body = $stretch(=)$
for i in range(24) {
- body = $body$
+ body = $body$
}
$body^"long text"$
}