Skip to content
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ mod test {
.collect::<HashSet<_>>();
assert!(
are_all_variants_valid(SYM, |c| {
// All text presentations are exactly 2 codepoints long as of
// Unicode 16.0, so this doesn't miss anything.
!(c.chars().count() == 1
&& require_presentation_selector.contains(&c.chars().next().unwrap()))
}),
Expand All @@ -285,6 +287,8 @@ mod test {
.collect::<HashSet<_>>();
assert!(
are_all_variants_valid(EMOJI, |c| {
// All text presentations are exactly 2 codepoints long as of
// Unicode 16.0, so this doesn't miss anything.
!(c.chars().count() == 1
&& require_presentation_selector.contains(&c.chars().next().unwrap()))
}),
Expand Down