Add td::remove_emoji_selectors test.
This commit is contained in:
parent
805e4d4a25
commit
e4bff687cf
@ -92,3 +92,34 @@ TEST(Emoji, remove_emoji_modifiers) {
|
||||
test_remove_emoji_modifiers("π", "π");
|
||||
test_remove_emoji_modifiers("π§βπ", "π§βπ");
|
||||
}
|
||||
|
||||
static void test_remove_emoji_selectors(td::string emoji, const td::string &result) {
|
||||
ASSERT_STREQ(result, td::remove_emoji_selectors(result));
|
||||
ASSERT_STREQ(result, td::remove_emoji_selectors(emoji));
|
||||
}
|
||||
|
||||
TEST(Emoji, remove_emoji_selectors) {
|
||||
test_remove_emoji_selectors("", "");
|
||||
test_remove_emoji_selectors("π©πΌββ€βπβπ©π»", "π©πΌββ€βπβπ©π»");
|
||||
test_remove_emoji_selectors("π©πΌββ€οΈβπβπ©π»", "π©πΌββ€βπβπ©π»");
|
||||
test_remove_emoji_selectors("ππ»", "ππ»");
|
||||
test_remove_emoji_selectors("ππΌ", "ππΌ");
|
||||
test_remove_emoji_selectors("ππ½", "ππ½");
|
||||
test_remove_emoji_selectors("ππΎ", "ππΎ");
|
||||
test_remove_emoji_selectors("ππΏ", "ππΏ");
|
||||
test_remove_emoji_selectors("π»", "π»");
|
||||
test_remove_emoji_selectors("πΌ", "πΌ");
|
||||
test_remove_emoji_selectors("π½", "π½");
|
||||
test_remove_emoji_selectors("πΎ", "πΎ");
|
||||
test_remove_emoji_selectors("πΏ", "πΏ");
|
||||
test_remove_emoji_selectors("β", "β");
|
||||
test_remove_emoji_selectors("β", "β");
|
||||
test_remove_emoji_selectors("πͺ", "πͺ");
|
||||
test_remove_emoji_selectors("2οΈβ£", "2β£");
|
||||
test_remove_emoji_selectors("2β£", "2β£");
|
||||
test_remove_emoji_selectors("β€οΈ", "β€");
|
||||
test_remove_emoji_selectors("β€", "β€");
|
||||
test_remove_emoji_selectors("β", "β");
|
||||
test_remove_emoji_selectors("π", "π");
|
||||
test_remove_emoji_selectors("π§βπ", "π§βπ");
|
||||
}
|
||||
|
Loadingβ¦
x
Reference in New Issue
Block a user