thing2(text): pin RI plus non-RI extension coalescing across dropped cluster

This commit is contained in:
Meta Vens 2026-12-06 05:31:39 +01:00
commit 07aa8d9b00

View file

@ -526,6 +526,9 @@ fn ri_does_not_re_pair_across_dropped_cluster() {
assert_eq!(pair_wrapped.lines[1].stops, [Stop { byte: 7, x: 0.0 }, Stop { byte: 11, x: 1.0 }]);
assert_eq!(&CellText::new(text), full);
// An RI followed by a non-RI extension across a dropped cluster still coalesces (only RI+RI is blocked).
assert_eq!(CellText::new("\u{1f1ef}\u{200b}\u{1f3fd}").clusters().count(), 1);
check_geometry("\u{1f1ef}\u{200b}\u{1f3fd}", false, None, 80.0);
}
#[test]