aboutsummaryrefslogtreecommitdiff
path: root/test/deinflector.test.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-01-28 07:21:12 -0500
committerGitHub <noreply@github.com>2024-01-28 12:21:12 +0000
commita51f1ab2dc675a49bfeeb08cc24b97eb8d888e4a (patch)
treec137c63c509aa3d7ecc4330b3cd2b37e2c949b94 /test/deinflector.test.js
parent1b9422d026dce0aedf5d2b94495222cccde4963e (diff)
Deinflection cycle testing (#477)
* Add ReasonRaw * Set up cycle checks * Use Deinflector.rulesMatch * Remove checkRules * Use Deinflector.rulesMatch * Convert to test * Rename * Rename
Diffstat (limited to 'test/deinflector.test.js')
-rw-r--r--test/deinflector.test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/deinflector.test.js b/test/deinflector.test.js
index 660b909a..69495b4c 100644
--- a/test/deinflector.test.js
+++ b/test/deinflector.test.js
@@ -38,7 +38,7 @@ function hasTermReasons(deinflector, source, expectedTerm, expectedRule, expecte
if (term !== expectedTerm) { continue; }
if (typeof expectedRule !== 'undefined') {
const expectedFlags = Deinflector.rulesToRuleFlags([expectedRule]);
- if (rules !== 0 && (rules & expectedFlags) !== expectedFlags) { continue; }
+ if (!Deinflector.rulesMatch(rules, expectedFlags)) { continue; }
}
let okay = true;
if (typeof expectedReasons !== 'undefined') {