summaryrefslogtreecommitdiff
path: root/test/test-japanese.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-04-04 16:22:35 -0400
committerGitHub <noreply@github.com>2021-04-04 16:22:35 -0400
commite14b52ef84be7feeab60167605fd10918a242cd3 (patch)
treeb9b124d9ed77806a7ad8b52c6e779da0f4844993 /test/test-japanese.js
parentb8bedd5185869edb33a7657fff323f812444eed0 (diff)
Update dictionary entry terminology (#1592)
* Update terminology * Update terminology in display.js * Update terminology in display-audio.js * Update terminology in text-scanner.js * Update terminology in backend.js * Update terminology in mecab.js * Update terminology in audio-downloader.js * Update terminology in translator-vm.js * Update terminology in dictionary-data-util.js * Update terminology in dictionary-database.js * Update terminology in japanese-util.js * Change/upgrade {expression} to {term} * Update terminology in test-japanese.js * Update terminology in test-database.js * Update terminology in anki-templates-controller.js * Update terminology in anki-note-builder.js * Update terminology in backend.js * Update terminology in text-scanner.js * Update terminology in display.js * Update terminology in display.js
Diffstat (limited to 'test/test-japanese.js')
-rw-r--r--test/test-japanese.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test-japanese.js b/test/test-japanese.js
index 978f4b9c..2772e984 100644
--- a/test/test-japanese.js
+++ b/test/test-japanese.js
@@ -199,7 +199,7 @@ function testConvertReading() {
[['ありがとう', '', 'none'], ''],
[['ありがとう', '', 'default'], ''],
- // Cases with falsy readings and kanji expressions
+ // Cases with falsy readings and kanji terms
[['有り難う', '', 'hiragana'], ''],
[['有り難う', '', 'katakana'], ''],
@@ -208,8 +208,8 @@ function testConvertReading() {
[['有り難う', '', 'default'], '']
];
- for (const [[expression, reading, readingMode], expected] of data) {
- assert.strictEqual(jp.convertReading(expression, reading, readingMode), expected);
+ for (const [[term, reading, readingMode], expected] of data) {
+ assert.strictEqual(jp.convertReading(term, reading, readingMode), expected);
}
}
@@ -708,7 +708,7 @@ function testDistributeFurigana() {
{text: 'る', furigana: 'ル'}
]
],
- // Reading starts with expression, but has remainder characters
+ // Reading starts with term, but has remainder characters
[
['シック', 'シック・ビルしょうこうぐん'],
[
@@ -717,8 +717,8 @@ function testDistributeFurigana() {
]
];
- for (const [[expression, reading], expected] of data) {
- const actual = jp.distributeFurigana(expression, reading);
+ for (const [[term, reading], expected] of data) {
+ const actual = jp.distributeFurigana(term, reading);
vm.assert.deepStrictEqual(actual, expected);
}
}
@@ -766,8 +766,8 @@ function testDistributeFuriganaInflected() {
]
];
- for (const [[expression, reading, source], expected] of data) {
- const actual = jp.distributeFuriganaInflected(expression, reading, source);
+ for (const [[term, reading, source], expected] of data) {
+ const actual = jp.distributeFuriganaInflected(term, reading, source);
vm.assert.deepStrictEqual(actual, expected);
}
}