diff options
Diffstat (limited to 'tests/unigbrk/test-u8-grapheme-next.c')
-rw-r--r-- | tests/unigbrk/test-u8-grapheme-next.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/unigbrk/test-u8-grapheme-next.c b/tests/unigbrk/test-u8-grapheme-next.c index 8a3e2723..8929814f 100644 --- a/tests/unigbrk/test-u8-grapheme-next.c +++ b/tests/unigbrk/test-u8-grapheme-next.c @@ -1,5 +1,5 @@ /* Next grapheme cluster length test. - Copyright (C) 2010-2024 Free Software Foundation, Inc. + Copyright (C) 2010-2025 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published @@ -76,5 +76,16 @@ main (void) test_u8_grapheme_next ("e"ACUTE"x", 4, 3); test_u8_grapheme_next ("e"ACUTE "e"ACUTE, 6, 3); + /* CR LF handling. */ + test_u8_grapheme_next ("\r\nd", 3, 2); + + /* Emoji modifier / ZWJ sequence. */ + test_u8_grapheme_next ("\342\255\220\314\205\315\207\342\200\215\342\230\200", + 13, 13); + + /* Regional indicators. */ + test_u8_grapheme_next ("\360\237\207\251\360\237\207\252\360\237\207\253\360\237\207\267", + 16, 8); + return test_exit_status; } |