How to use the demoji.parse_unicode_sequence function in demoji

To help you get started, we’ve selected a few demoji examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bsolomon1124 / demoji / tests / test_demoji.py View on Github external
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")) == [
        "♈",
        "♉",
        "♊",
        "♋",
        "♌",
        "♍",
        "♎",
        "♏",
        "♐",
        "♑",
        "♒",
        "♓",
github bsolomon1124 / demoji / tests / test_demoji.py View on Github external
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")) == [
        "♈",
        "♉",
        "♊",
        "♋",
        "♌",
        "♍",
        "♎",
        "♏",
        "♐",
        "♑",
        "♒",
        "♓",
    ]