Skip to content

Commit 8b20945

Browse files
committed
Add clarification comment
1 parent 2fb667e commit 8b20945

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 Unicode 16.0.
273+
// See https://github.com/typst/codex/pull/114#discussion_r2266318559.
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 Unicode 16.0.
291+
// See https://github.com/typst/codex/pull/114#discussion_r2266318559.
288292
!(c.chars().count() == 1
289293
&& require_presentation_selector.contains(&c.chars().next().unwrap()))
290294
}),

0 commit comments

Comments
 (0)