diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/withinRange.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/withinRange.js b/test/withinRange.js index 5dd349c..8d46eba 100644 --- a/test/withinRange.js +++ b/test/withinRange.js @@ -131,5 +131,17 @@ test('withinRange', t => { '12C not within 118-120' ) + t.same( + withinRange(B, AC, { matchParity: true }), + false, + 'B not within AC when matching parity' + ) + + t.same( + withinRange(A, AC, { matchParity: true }), + true, + 'A within AC when matching parity' + ) + t.end() }) |