mirror of
https://github.com/aphrody-labs/wordcraft.git
synced 2026-10-13 19:26:53 +00:00
Tests: the equation-wrap test accepts plain y where no math font is installed (FreeBSD CI)
The first glyph is math italic 𝑦 only when a font has it; FreeBSD CI has none, so it shapes as plain y. The test is about line breaks and indents, not the glyph. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
81bf9187f2
commit
cc2dc9e99c
1 file changed
+2
-1
@@ -2009,7 +2009,8 @@ mod tests {
|
||||
for (k, (_, gs)) in ls.iter().enumerate() {
|
||||
let (x0, first) = gs.first().cloned().unwrap();
|
||||
if k == 0 {
|
||||
assert!(x0.abs() < 0.01 && first == "𝑦", "{gs:?}");
|
||||
// Math italic 𝑦 when a font has it; plain y where none does (FreeBSD CI has no fonts).
|
||||
assert!(x0.abs() < 0.01 && (first == "𝑦" || first == "y"), "{gs:?}");
|
||||
} else {
|
||||
// Continuation lines start with the operator, one wrap indent in.
|
||||
assert!((x0 - mp.wrap_indent).abs() < 0.01 && first == "+", "line {k}: {gs:?}");
|
||||
|
||||
Reference in new issue
Block a user