Skip to content

Commit 0258d05

Browse files
committed
Add clarification comment
1 parent 2fb667e commit 0258d05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ mod test {
269269
.collect::<HashSet<_>>();
270270
assert!(
271271
are_all_variants_valid(SYM, |c| {
272+
// All text presentations are exactly 2 codepoints long as of
273+
// Unicode 16.0, so this doesn't miss anything.
272274
!(c.chars().count() == 1
273275
&& require_presentation_selector.contains(&c.chars().next().unwrap()))
274276
}),
@@ -285,6 +287,8 @@ mod test {
285287
.collect::<HashSet<_>>();
286288
assert!(
287289
are_all_variants_valid(EMOJI, |c| {
290+
// All text presentations are exactly 2 codepoints long as of
291+
// Unicode 16.0, so this doesn't miss anything.
288292
!(c.chars().count() == 1
289293
&& require_presentation_selector.contains(&c.chars().next().unwrap()))
290294
}),

0 commit comments

Comments
 (0)