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.
This commit is contained in:
dotCooCoo committed 2026-12-01 17:47:59 -08:00
1 parent ee56902432
commit 771e73d405
1 file changed
+1 -3
+1 -3
View File
@@ -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<usize> = 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::<Vec<_>>());
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));
}