diff options
Diffstat (limited to 'test/deinflector.test.js')
-rw-r--r-- | test/deinflector.test.js | 2 |
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') { |