diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/api-word.ts | 14 |
1 files changed, 14 insertions, 0 deletions
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<ParseToken>; + +for (var testcase of cases) { + var test = new Word(testcase); + console.log(test); +} + |