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

@ -6,6 +6,8 @@ const unfold = require('./unfold.js');
expect(unfold).toBeInstanceOf(Function);
});
var f = n => (n > 50 ? false : [-n, n + 10]);
t.deepEqual(unfold(f, 10), [-10, -20, -30, -40, -50], 'Works with a given function, producing an array');
test('Works with a given function, producing an array', () => {
expect(unfold(f, 10), [-10, -20, -30, -40, -50]).toEqual()
});