Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_utils():
assert (
demoji.parse_unicode_sequence("1F468 200D 2764 FE0F 200D 1F468")
== "\U0001F468\U0000200D\U00002764\U0000FE0F\U0000200D\U0001F468"
)
assert demoji.parse_unicode_sequence("1F468") == "\U0001F468"
assert list(demoji.parse_unicode_range("2648..2653")) == [
"♈",
"♉",
"♊",
"♋",
"♌",
"♍",
"♎",
"♏",
"♐",
"♑",
"♒",
"♓",
def test_utils():
assert (
demoji.parse_unicode_sequence("1F468 200D 2764 FE0F 200D 1F468")
== "\U0001F468\U0000200D\U00002764\U0000FE0F\U0000200D\U0001F468"
)
assert demoji.parse_unicode_sequence("1F468") == "\U0001F468"
assert list(demoji.parse_unicode_range("2648..2653")) == [
"♈",
"♉",
"♊",
"♋",
"♌",
"♍",
"♎",
"♏",
"♐",
"♑",
"♒",
"♓",
]