From 5c9bebac4078ee053c5048e4de2a3ed5afed4e24 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 3 Jul 2023 12:46:22 +0200 Subject: fix furigana for known working sentence --- test/api-word.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/api-word.ts (limited to 'test') diff --git a/test/api-word.ts b/test/api-word.ts new file mode 100644 index 0000000..c41e1ef --- /dev/null +++ b/test/api-word.ts @@ -0,0 +1,14 @@ +import Word from "../api/word.ts"; +import { Tag } from "../language/tags.ts"; +import { ParseToken } from "../language/types.ts"; + +var cases = [ + { writing: "繰り返す", reading: "くりかえす", source: "繰り返した", start: 0, tags: [Tag.Class.Verb.U], term_id: 0 }, + { writing: "繰り返す", reading: "くりかえす", source: "くりかえした", start: 0, tags: [Tag.Class.Verb.U], term_id: 0 }, +] satisfies Array; + +for (var testcase of cases) { + var test = new Word(testcase); + console.log(test); +} + -- cgit v1.2.3