From 771e73d4056199bb9721206338eefc8a5a936c41 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Tue, 1 Dec 2026 17:47:59 -0800 Subject: [PATCH] Tests: Hebrew mark clusters must cover the whole word hebrew_marks_stay_with_base_clusters now calls assert_source_coverage, so glyphs that start at the four letters but leave the marks out of their source ranges fail the test. --- crates/text/src/tests/bidi.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/text/src/tests/bidi.rs b/crates/text/src/tests/bidi.rs index 4a761dda20..68fb50f4ec 100644 --- a/crates/text/src/tests/bidi.rs +++ b/crates/text/src/tests/bidi.rs @@ -257,9 +257,7 @@ fn hebrew_marks_stay_with_base_clusters() { // Each glyph's source starts at one of the four letters, never at a point after one. let starts: std::collections::BTreeSet = l.glyphs.iter().map(|g| g.byte).collect(); assert_eq!(starts, [0, 6, 8, 12].into(), "{:?}", l.glyphs.iter().map(|g| (g.byte, g.len)).collect::>()); - for g in &l.glyphs { - assert!(s.get(g.byte..g.byte + g.len).is_some()); - } + assert_source_coverage(s, &l); assert!(l.glyphs.iter().all(|g| g.rtl)); }