mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-03 20:43:18 -05:00
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:
1 parent
ee56902432
commit
771e73d405
1 file changed
+1
-3
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user