{ "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 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": "
πŸ˜„
", "expected": "
:smile:
" } ] }, { "module": "toImage", "tests": [ { "description": "single character shortname conversion", "text": "Hello world! πŸ˜„ :smile:", "expected": "Hello world! \"πŸ˜„\" \"πŸ˜„\"" }, { "description": "shortname shares a colon", "text": ":invalid:snail:", "expected": ":invalid\"🐌\"" }, { "description": "single unicode character conversion", "text": "🐌", "expected": "\"🐌\"" } ] } ] }