8000 Additional test case · jmuk/unicode-segmentation@4a76978 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4a76978

Browse files
c 8000 ommitted
Additional test case
This adds a test case for unicode-rs#19 (which was a mismatch between forward and reverse iterators in the original codebase).
1 parent ae18631 commit 4a76978

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ fn test_graphemes() {
3434
// family emoji (more than two emoji joined by ZWJ)
3535
("\u{1f468}\u{200d}\u{1f467}\u{200d}\u{1f466}",
3636
&["\u{1f468}\u{200d}\u{1f467}\u{200d}\u{1f466}"]),
37+
// cartwheel emoji followed by two fitzpatrick skin tone modifiers
38+
// (test case from issue #19)
39+
("\u{1F938}\u{1F3FE}\u{1F3FE}",
40+
&["\u{1F938}\u{1F3FE}", "\u{1F3FE}"]),
3741
];
3842

3943
for &(s, g) in TEST_SAME.iter().chain(EXTRA_SAME) {

0 commit comments

Comments
 (0)
0