diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-03-10 20:27:01 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-03-10 20:29:21 -0500 |
commit | 1f09be350fd371e7618d2b9cb398c7c6a36ee7e7 (patch) | |
tree | 2e67c5f7140d30c6d39b31f72c13283eb1cfc01b /test/test-japanese.js | |
parent | 55ac05eba147edb3cc81e9f302055c15cf7fd7a4 (diff) |
Fix incorrect furigana distribution (#1514)
* Improve distributeFuriganaInflected implementation
* Update tests
Diffstat (limited to 'test/test-japanese.js')
-rw-r--r-- | test/test-japanese.js | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/test/test-japanese.js b/test/test-japanese.js index e9fb9c90..8e8078d1 100644 --- a/test/test-japanese.js +++ b/test/test-japanese.js @@ -729,16 +729,26 @@ function testDistributeFuriganaInflected() { ['美味しい', 'おいしい', '美味しかた'], [ {text: '美味', furigana: 'おい'}, - {text: 'し', furigana: ''}, - {text: 'かた', furigana: ''} + {text: 'しかた', furigana: ''} ] ], [ ['食べる', 'たべる', '食べた'], [ {text: '食', furigana: 'た'}, - {text: 'べ', furigana: ''}, - {text: 'た', furigana: ''} + {text: 'べた', furigana: ''} + ] + ], + [ + ['迄に', 'までに', 'までに'], + [ + {text: 'までに', furigana: ''} + ] + ], + [ + ['行う', 'おこなう', 'おこなわなかった'], + [ + {text: 'おこなわなかった', furigana: ''} ] ] ]; |