Fix is_emoji.

This commit is contained in:
levlam 2021-11-18 14:37:31 +03:00
parent fb39e5d746
commit bf9c78e982
2 changed files with 541 additions and 710 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1232,4 +1232,6 @@ TEST(Misc, is_emoji) {
ASSERT_TRUE(!td::is_emoji(" ")); ASSERT_TRUE(!td::is_emoji(" "));
ASSERT_TRUE(!td::is_emoji("")); ASSERT_TRUE(!td::is_emoji(""));
ASSERT_TRUE(!td::is_emoji("1234567890123456789012345678901234567890123456789012345678901234567890")); ASSERT_TRUE(!td::is_emoji("1234567890123456789012345678901234567890123456789012345678901234567890"));
ASSERT_TRUE(td::is_emoji("❤️"));
ASSERT_TRUE(td::is_emoji(""));
} }