Test cleanup and fixes [a-b]
This commit is contained in:
@ -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()
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user