From 948d2311a0fdf2bb5641861824e6c629d1f2a93d Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 14 Jul 2023 15:44:19 +0200 Subject: fix api/japanese kana/kanji matching --- test/single/api-japanese.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/single') 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); }); -- cgit v1.2.3