From 1e460e851c410504f7e605dd08d6634d63a89154 Mon Sep 17 00:00:00 2001 From: azar Date: Sat, 24 Oct 2020 21:29:08 +0530 Subject: [PATCH] test cases add for iphone crash emoji --- test/runes.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/runes.js b/test/runes.js index da92bd5..c0ff92d 100644 --- a/test/runes.js +++ b/test/runes.js @@ -128,3 +128,11 @@ test('โœ‚๏ธ substring', (t) => { t.deepEqual(substring('๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘งabc', 1), 'abc') t.deepEqual(substring('๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘งabcd', 2), 'bcd') }) + +test('โœ‚๏ธ Runes should handle โš0๐ŸŒˆ', (t) => { + t.deepEqual(runes('โš0๐ŸŒˆ'), ['โš', '0', '๐ŸŒˆ']) +}) + +test('โœ‚๏ธ Runes should handle ๐Ÿ‡น๐Ÿ‡ผ', (t) => { + t.deepEqual(runes('๐Ÿ‡น๐Ÿ‡ผ'), ['๐Ÿ‡น๐Ÿ‡ผ']) +}) \ No newline at end of file