Improved error message thrown in inRange, added additional test cases for inRange

This commit is contained in:
Giora Guttsait 2017-09-27 10:59:13 +03:00
parent 585700dffb
commit 48a3b391c1
2 changed files with 12 additions and 1 deletions

View file

@ -332,7 +332,15 @@ test('is.inRange', t => {
m.inRange(0);
});
t.throws(() => {
m.inRange(0, []);
});
t.throws(() => {
m.inRange(0, [5]);
});
t.throws(() => {
m.inRange(0, [1, 2, 3]);
});
});