diff options
Diffstat (limited to 'test/deinflector.test.js')
-rw-r--r-- | test/deinflector.test.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/deinflector.test.js b/test/deinflector.test.js index b00625cf..e90704f1 100644 --- a/test/deinflector.test.js +++ b/test/deinflector.test.js @@ -31,7 +31,7 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * @param {Deinflector} deinflector * @param {string} source * @param {string} expectedTerm - * @param {string} expectedRule + * @param {string|undefined} expectedRule * @param {string[]|undefined} expectedReasons * @returns {{has: false, reasons: null, rules: null}|{has: true, reasons: string[], rules: number}} */ @@ -115,7 +115,7 @@ function testDeinflections() { {term: '食べる', source: '食べたり', rule: 'v1', reasons: ['-tari']}, {term: '食べる', source: '食べず', rule: 'v1', reasons: ['-zu']}, {term: '食べる', source: '食べぬ', rule: 'v1', reasons: ['-nu']}, - {term: '食べる', source: '食べ', rule: 'v1', reasons: ['masu stem']}, + {term: '食べる', source: '食べ', rule: 'v1d', reasons: ['masu stem']}, {term: '食べる', source: '食べましょう', rule: 'v1', reasons: ['polite volitional']}, {term: '食べる', source: '食べよう', rule: 'v1', reasons: ['volitional']}, // ['causative passive'] @@ -895,7 +895,9 @@ function testDeinflections() { {term: 'くる', source: 'くさせられない', rule: 'vk'}, {term: 'かわいい', source: 'かわいげ', rule: 'adj-i', reasons: ['-ge']}, - {term: '可愛い', source: 'かわいげ', rule: 'adj-i', reasons: ['-ge']} + {term: '可愛い', source: 'かわいげ', rule: 'adj-i', reasons: ['-ge']}, + + {term: '食べる', source: '食べて', reasons: ['-te', 'progressive or perfect', 'masu stem']} ] }, { |