Test cleanup and fixes [a-b]

This commit is contained in:
Angelos Chalaris
2018-06-18 15:54:48 +03:00
parent 4f7da1be9b
commit d29974ebc9
151 changed files with 753 additions and 373 deletions

View File

@ -11,7 +11,9 @@ const randomIntArrayInRange = require('./randomIntArrayInRange.js');
test('The returned array contains only integers', () => {
expect(arr.every(x => typeof x === 'number')).toBeTruthy();
});
t.equal(arr.length, 10, 'The returned array has the proper length');
test('The returned array has the proper length', () => {
expect(arr.length, 10).toBe()
});
test('The returned array\'s values lie between provided lowerLimit and upperLimit (both inclusive).', () => {
expect(arr.every(x => (x >= lowerLimit) && (x <= upperLimit))).toBeTruthy();
});