Skip to content

Commit

Permalink
Additional test case
Browse files Browse the repository at this point in the history
This adds a test case for unicode-rs#19 (which was a mismatch between forward
and reverse iterators in the original codebase).
  • Loading branch information
raphlinus committed Mar 6, 2017
1 parent ae18631 commit 4a76978
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ fn test_graphemes() {
// family emoji (more than two emoji joined by ZWJ)
("\u{1f468}\u{200d}\u{1f467}\u{200d}\u{1f466}",
&["\u{1f468}\u{200d}\u{1f467}\u{200d}\u{1f466}"]),
// cartwheel emoji followed by two fitzpatrick skin tone modifiers
// (test case from issue #19)
("\u{1F938}\u{1F3FE}\u{1F3FE}",
&["\u{1F938}\u{1F3FE}", "\u{1F3FE}"]),
];

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

0 comments on commit 4a76978

Please sign in to comment.