aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-10 20:27:01 -0500
committerGitHub <noreply@github.com>2021-03-10 20:27:01 -0500
commit800ce9ed9e33690af518e0236ec22f19f413903f (patch)
tree30f0d45f973fb8537a5db1321c36bff9400ad483 /test
parent63de9273b383cc46a2f063cfb40ef4699b06e612 (diff)
Fix incorrect furigana distribution (#1514)
* Improve distributeFuriganaInflected implementation * Update tests
Diffstat (limited to 'test')
-rw-r--r--test/test-japanese.js18
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: ''}
]
]
];