Test cleanup and fixes [a-b]

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

View File

@ -9,8 +9,14 @@ const uncurry = require('./uncurry.js');
const add1 = uncurry(add);
const add2 = uncurry(add, 2);
const add3 = uncurry(add, 3);
t.equal(add1(1)(2)(3), 6, 'Works without a provided value for n');
t.equal(add2(1,2)(3), 6, 'Works without n = 2');
t.equal(add3(1,2,3), 6, 'Works withoutn = 3');
test('Works without a provided value for n', () => {
expect(add1(1)(2)(3), 6).toBe()
});
test('Works without n = 2', () => {
expect(add2(1,2)(3), 6).toBe()
});
test('Works withoutn = 3', () => {
expect(add3(1,2,3), 6).toBe()
});