summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-15 23:02:38 -0400
committerGitHub <noreply@github.com>2021-03-15 23:02:38 -0400
commit8ae78449f205715d894efb34e786e947199ee28e (patch)
tree28a3939b7469a5e4ca49d301871090c9e9d74a3f /test
parentcba45b5e304afe0623e1d032d65e5efc2fc3929b (diff)
Fix furigana distribution when source/expression kana differs (#1532)
* Fix furigana distribution when source/expression kana differs * Add an additional test
Diffstat (limited to 'test')
-rw-r--r--test/test-japanese.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test-japanese.js b/test/test-japanese.js
index 8e8078d1..978f4b9c 100644
--- a/test/test-japanese.js
+++ b/test/test-japanese.js
@@ -750,6 +750,19 @@ function testDistributeFuriganaInflected() {
[
{text: 'おこなわなかった', furigana: ''}
]
+ ],
+ [
+ ['いい', 'いい', 'イイ'],
+ [
+ {text: 'イイ', furigana: ''}
+ ]
+ ],
+ [
+ ['否か', 'いなか', '否カ'],
+ [
+ {text: '否', furigana: 'いな'},
+ {text: 'カ', furigana: 'か'}
+ ]
]
];