Additional tests

This commit is contained in:
Angelos Chalaris
2018-11-01 14:47:28 +02:00
parent a097c3de36
commit 7f019cf3ed
4 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,9 @@ test('inRange is a Function', () => {
test('The given number falls within the given range', () => {
expect(inRange(3, 2, 5)).toBeTruthy();
});
test('The given number falls within the given range (reverse)', () => {
expect(inRange(3, 5, 2)).toBeTruthy();
});
test('The given number falls within the given range', () => {
expect(inRange(3, 4)).toBeTruthy();
});