{ "data": [ { "module":"toImage", "tests": [ { "description": "test toImage", "text": "Hello world! π :smile:", "expected": "Hello world! " }, { "description": "mixed ascii, regular unicode and duplicate emoji", "text": ":alien: is π½ and μ is not :alien: or :alien: also :randomy: is not emoji", "expected": " is and μ is not or also :randomy: is not emoji" } ] }, { "module":"unifyUnicode", "tests": [ { "description": "test unifyUnicode", "text": "Hello world! π :smile:", "expected": "Hello world! π π" }, { "description": "mixed ascii, regular unicode and duplicate emoji", "text": ":alien: is π½ and μ is not :alien: or :alien: also :randomy: is not emoji", "expected": "π½ is π½ and μ is not π½ or π½ also :randomy: is not emoji" }, { "description": "multiline emoji string", "text": ":dancer:\\\n:dancer:", "expected": "π\\\nπ" }, { "description": "triple emoji string", "text": ":dancer::dancer::alien:", "expected": "πππ½" } ] }, { "module": "shortnameToUnicode", "tests": [ { "description": "single unicode character conversion", "text": "Hello world! π :smile:", "expected": "Hello world! π π" }, { "description": "shortname mid sentence with a comma", "text": "The :snail:, is Emoji One's official mascot.", "expected": "The π, is Emoji One's official mascot." }, { "description": "shortname at start of sentence with apostrophe", "text": ":snail:'s are cool!", "expected": "π's are cool!" }, { "description": "shortname shares a colon", "text": ":invalid:snail:", "expected": ":invalidπ" }, { "description": "mixed ascii, regular unicode and duplicate emoji", "text": ":alien: is π½ and μ is not :alien: or :alien: also :randomy: is not emoji", "expected": "π½ is π½ and μ is not π½ or π½ also :randomy: is not emoji" }, { "description": "multiline emoji string", "text": ":dancer:\\n:dancer:", "expected": "π\\nπ" }, { "description": "triple emoji string", "text": ":dancer::dancer::alien:", "expected": "πππ½" } ] }, { "module": "shortnameToImage", "tests": [ { "description": "single shortname character conversion", "text": "Hello world! π :smile:", "expected": "Hello world! π " }, { "description": "shortname at start of sentence with apostrophe", "text": ":snail:'s are cool!", "expected": "'s are cool!" }, { "description": "shortname shares a colon", "text": ":invalid:snail:", "expected": ":invalid" }, { "description": "mixed ascii, regular unicode and duplicate emoji", "text": ":alien: is π½ and μ is not :alien: or :alien: also :randomy: is not emoji", "expected": " is π½ and μ is not or also :randomy: is not emoji" }, { "description": "multiline emoji string", "text": ":dancer:\\n:dancer:", "expected": "\\n" }, { "description": "triple emoji string", "text": ":dancer::dancer::alien:", "expected": "" } ] }, { "module": "toShort", "tests": [ { "description": "single unicode character conversion", "text": "Hello world! π :smile:", "expected": "Hello world! :smile: :smile:" }, { "description": "mixed ascii, regular unicode and duplicate emoji", "text": "π½ is not :alien: and μ is not π½ or π½", "expected": ":alien: is not :alien: and μ is not :alien: or :alien:" }, { "description": "multiline emoji string", "text": "π\\nπ", "expected": ":dancer:\\n:dancer:" }, { "description": "alias vs. canonical", "text": "π―π΅ γ©γγγγγγ¨γ", "expected": ":flag_jp: γ©γγγγγγ¨γ" }, { "description": "unicode character conversion within excluded tag", "text": "