test(tower): strengthen emoji_cp zwj assertion
This commit is contained in:
@@ -9,8 +9,8 @@ def test_emoji_cp_strips_vs16():
|
||||
assert C.emoji_cp("\U0001F600") == "1f600" # 😀
|
||||
# emoji with VS16 (U+FE0F) must be stripped (twemoji 404s otherwise)
|
||||
assert C.emoji_cp("☀️") == "2600" # ☀️ -> 2600
|
||||
# multi-codepoint (no VS16): joined by '-'
|
||||
assert C.emoji_cp("\U0001F468\U0001F4BB").split("-")[0] == "1f468"
|
||||
# multi-codepoint (no VS16): joined by '-' — full ZWJ sequence check
|
||||
assert C.emoji_cp("\U0001F468\U0001F4BB") == "1f468-200d-1f4bb"
|
||||
|
||||
if __name__ == "__main__":
|
||||
for name, fn in sorted(globals().items()):
|
||||
|
||||
Reference in New Issue
Block a user