aboutsummaryrefslogtreecommitdiff
path: root/test/single
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-07-14 15:44:19 +0200
committerlonkaars <loek@pipeframe.xyz>2023-07-14 15:44:19 +0200
commit948d2311a0fdf2bb5641861824e6c629d1f2a93d (patch)
tree9f715895f135cfca8e1173842a092c8725f5c75b /test/single
parenta15c3fefe33f96c8f85147c61ee266abc43b4f65 (diff)
fix api/japanese kana/kanji matching
Diffstat (limited to 'test/single')
-rw-r--r--test/single/api-japanese.test.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/single/api-japanese.test.ts b/test/single/api-japanese.test.ts
index 4e89c64..e604f61 100644
--- a/test/single/api-japanese.test.ts
+++ b/test/single/api-japanese.test.ts
@@ -17,10 +17,11 @@ const cases = [
{ input: ["気を引き締める", "きをひきしめる"], output: "[気](き)を[引](ひ)き[締](し)める" },
// https://japanese.stackexchange.com/questions/69521/reading-per-kanji-irregular-readings
{ input: ["大口魚", "たら"], output: "[大口魚](たら)" },
+ { input: ["この辺に", "このへんに"], output: "この[辺](へん)に" },
] satisfies Test[];
cases.forEach(({ input, output }) => {
- Deno.test(`Japanese API class - ${input}`, async () => {
+ Deno.test(`Japanese API class - ${input[0]} (${input[1]}) -> ${output}`, async () => {
var jp = new Japanese(...input);
assertEquals(jp.furigana("refold-tools"), output);
});