From cc2dc9e99c1bc20fce602435f70e82ba3423bd5e Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 10 Oct 2026 17:04:00 -0400 Subject: [PATCH] Tests: the equation-wrap test accepts plain y where no math font is installed (FreeBSD CI) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- crates/layout/src/math.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/layout/src/math.rs b/crates/layout/src/math.rs index d1a7014..bab58ef 100644 --- a/crates/layout/src/math.rs +++ b/crates/layout/src/math.rs @@ -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:?}");