aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-11 16:53:29 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-11 16:53:29 -0400
commit92f2466cfff40d47fb5e6350dae5d7ff82770973 (patch)
tree8722c09a25026518dbbbdb5a450cd4d934fa53c1 /test
parent90392ac9d6d3b54f811e3d056043a1ffe26fa963 (diff)
Add tests, remove logs
Diffstat (limited to 'test')
-rw-r--r--test/test-japanese.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/test-japanese.js b/test/test-japanese.js
index ac28a579..b1bba9a7 100644
--- a/test/test-japanese.js
+++ b/test/test-japanese.js
@@ -414,6 +414,17 @@ function testCollapseEmphaticSequences() {
[['っっっこい', false], ['っこい', [3, 1, 1]]],
[['っっっこい', true], ['こい', [4, 1]]],
+ [['すごい', false], ['すごい', [1, 1, 1]]],
+ [['すごい', true], ['すごい', [1, 1, 1]]],
+ [['すごーい', false], ['すごーい', [1, 1, 1, 1]]],
+ [['すごーい', true], ['すごい', [1, 2, 1]]],
+ [['すごーーい', false], ['すごーい', [1, 1, 2, 1]]],
+ [['すごーーい', true], ['すごい', [1, 3, 1]]],
+ [['すっごーい', false], ['すっごーい', [1, 1, 1, 1, 1]]],
+ [['すっごーい', true], ['すごい', [2, 2, 1]]],
+ [['すっっごーーい', false], ['すっごーい', [1, 2, 1, 2, 1]]],
+ [['すっっごーーい', true], ['すごい', [3, 3, 1]]],
+
[['', false], ['', []]],
[['', true], ['', []]],
[['っ', false], ['っ', [1]]],
@@ -431,8 +442,6 @@ function testCollapseEmphaticSequences() {
assert.strictEqual(actual1, expected);
assert.strictEqual(actual2, expected);
if (typeof expectedSourceMapping !== 'undefined') {
- console.log('actual', JSON.stringify(actual1), sourceMap);
- console.log('expected', JSON.stringify(expected), new TextSourceMap(text, expectedSourceMapping));
assert.ok(sourceMap.equals(new TextSourceMap(text, expectedSourceMapping)));
}
}