Skip to content

Commit 8bac7c7

Browse files
committed
Add @cmyr's tests
1 parent 731d346 commit 8bac7c7

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
@@ -98,6 +98,10 @@ fn test_words() {
9898
("🇦🇫🇦🇽🇦🇱🇩🇿🇦🇸🇦🇩🇦", &["🇦🇫", "🇦🇽", "🇦🇱", "🇩🇿", "🇦🇸", "🇦🇩", "🇦"]),
9999
("🇦a🇫🇦🇽a🇦🇱🇩🇿🇦🇸🇦🇩🇦", &["🇦", "a", "🇫🇦", "🇽", "a", "🇦🇱", "🇩🇿", "🇦🇸", "🇦🇩", "🇦"]),
100100
("\u{1f468}\u{200d}\u{1f468}\u{200d}\u{1f466}", &["\u{1f468}\u{200d}\u{1f468}\u{200d}\u{1f466}"]),
101+
("😌👎🏼", &["😌", "👎🏼"]),
102+
// perhaps wrong, spaces should not be included?
103+
("hello world", &["hello", " ", "world"]),
104+
("🇨🇦🇨🇭🇿🇲🇿 hi", &["🇨🇦", "🇨🇭", "🇿🇲", "🇿", " ", "hi"]),
101105
];
102106
for &(s, w) in TEST_WORD.iter().chain(EXTRA_TESTS.iter()) {
103107
macro_rules! assert_ {

0 commit comments

Comments
 (0)