<reponame>casept/anyascii
from anyascii import anyascii


def check(s, expected):
    assert anyascii(s) == expected


def test():
    check("", "")
    check("\u0000\u0001\t\n\u001f ~\u007f", "\u0000\u0001\t\n\u001f ~\u007f")
    check("sample", "sample")
    check("<NAME>", "<NAME>")
    check("<NAME>", "<NAME>")
    check("<NAME>", "<NAME>")
    check("Nærøy", "Naeroy")
    check("Φειδιππίδης", "Feidippidis")
    check("Δημήτρης Φωτόπουλος", "<NAME>")
    check("<NAME>", "<NAME>")
    check("Володимир Горбулін", "<NAME>")
    check("Търговище", "T'rgovishche")
    check("دمنهور", "dmnhwr")
    check("אברהם הלוי פרנקל", "'vrhm hlvy frnkl")
    check("ߞߐߣߊߞߙߌ߫", "konakri")
    check("სამტრედია", "samt'redia")
    check("Աբովյան", "Abovyan")
    check("สงขลา", "sngkhla")
    check("ສະຫວັນນະເຂດ", "sahvannaekhd")
    check("សៀមរាប", "siemrab")
    check("ထန်တလန်", "htntln")
    check("深圳", "ShenZhen")
    check("深水埗", "ShenShuiBu")
    check("화성시", "HwaSeongSi")
    check("華城市", "HuaChengShi")
    check("さいたま", "saitama")
    check("埼玉県", "QiYuXian")
    check("トヨタ", "toyota")
    check("ደብረ ዘይት", "debre zeyt")
    check("ደቀምሓረ", "dek'emhare")
    check("⠠⠎⠁⠽⠀⠭⠀⠁⠛", "+say x ag")
    check("ময়মনসিংহ", "mymnsimh")
    check("પોરબંદર", "porbmdr")
    check("महासमुंद", "mhasmumd")
    check("ಬೆಂಗಳೂರು", "bemgluru")
    check("കളമശ്ശേരി", "klmsseri")
    check("ਜਲੰਧਰ", "jlmdhr")
    check("ଗଜପତି", "gjpti")
    check("රත්නපුර", "rtnpur")
    check("கன்னியாகுமரி", "knniyakumri")
    check("శ్రీకాకుళం", "srikakulm")
    check("😎 👑 🍎", ":sunglasses: :crown: :apple:")
    check("☆ ♯ ♰ ⚄ ⛌", "* # + 5 X")
    check("№ ℳ ⅋ ⅍", "No M & A/S")
from anyascii import anyascii


def check(s, expected):
    assert anyascii(s) == expected


def test():
    check("", "")
    check("\u0000\u0001\t\n\u001f ~\u007f", "\u0000\u0001\t\n\u001f ~\u007f")
    check("sample", "sample")
    check("<NAME>", "<NAME>")
    check("<NAME>", "<NAME>")
    check("<NAME>", "<NAME>")
    check("Nærøy", "Naeroy")
    check("Φειδιππίδης", "Feidippidis")
    check("Δημήτρης Φωτόπουλος", "<NAME>")
    check("<NAME>", "<NAME>")
    check("Володимир Горбулін", "<NAME>")
    check("Търговище", "T'rgovishche")
    check("دمنهور", "dmnhwr")
    check("אברהם הלוי פרנקל", "'vrhm hlvy frnkl")
    check("ߞߐߣߊߞߙߌ߫", "konakri")
    check("სამტრედია", "samt'redia")
    check("Աբովյան", "Abovyan")
    check("สงขลา", "sngkhla")
    check("ສະຫວັນນະເຂດ", "sahvannaekhd")
    check("សៀមរាប", "siemrab")
    check("ထန်တလန်", "htntln")
    check("深圳", "ShenZhen")
    check("深水埗", "ShenShuiBu")
    check("화성시", "HwaSeongSi")
    check("華城市", "HuaChengShi")
    check("さいたま", "saitama")
    check("埼玉県", "QiYuXian")
    check("トヨタ", "toyota")
    check("ደብረ ዘይት", "debre zeyt")
    check("ደቀምሓረ", "dek'emhare")
    check("⠠⠎⠁⠽⠀⠭⠀⠁⠛", "+say x ag")
    check("ময়মনসিংহ", "mymnsimh")
    check("પોરબંદર", "porbmdr")
    check("महासमुंद", "mhasmumd")
    check("ಬೆಂಗಳೂರು", "bemgluru")
    check("കളമശ്ശേരി", "klmsseri")
    check("ਜਲੰਧਰ", "jlmdhr")
    check("ଗଜପତି", "gjpti")
    check("රත්නපුර", "rtnpur")
    check("கன்னியாகுமரி", "knniyakumri")
    check("శ్రీకాకుళం", "srikakulm")
    check("😎 👑 🍎", ":sunglasses: :crown: :apple:")
    check("☆ ♯ ♰ ⚄ ⛌", "* # + 5 X")
    check("№ ℳ ⅋ ⅍", "No M & A/S")