aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-07-03 12:46:22 +0200
committerlonkaars <loek@pipeframe.xyz>2023-07-03 12:46:22 +0200
commit5c9bebac4078ee053c5048e4de2a3ed5afed4e24 (patch)
tree6afc0bf8e0d8db373bb080567c6db56b78b4440a /test
parentfa68eb21bf1d0460303cae3a0233e2d6cefd00ca (diff)
fix furigana for known working sentence
Diffstat (limited to 'test')
-rw-r--r--test/api-word.ts14
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);
+}
+