From b2ed45a3340449686ff64aa5980811e30938f132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Feje=C5=A1?= Date: Mon, 15 Jan 2018 20:53:27 +0100 Subject: [PATCH] add 2 tests for curry --- test/curry/curry.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/curry/curry.test.js b/test/curry/curry.test.js index 1271e74ff..a8014b100 100644 --- a/test/curry/curry.test.js +++ b/test/curry/curry.test.js @@ -5,8 +5,8 @@ test('Testing curry', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof curry === 'function', 'curry is a Function'); - //BROKEN - // t.equal(curry(Math.pow)(2)(10), 1024, "Curries a function"); + t.equal(curry(Math.pow)(2)(10), 1024, "curries a Math.pow"); + t.equal(curry(Math.min, 3)(10)(50)(2), 2, "curries a Math.min"); //t.deepEqual(curry(args..), 'Expected'); //t.equal(curry(args..), 'Expected'); //t.false(curry(args..), 'Expected');