From 1df16a0dad655ee99fe2df4cc9f637cf760b6fb2 Mon Sep 17 00:00:00 2001 From: david wee Date: Wed, 2 Nov 2011 03:00:48 -0700 Subject: [PATCH] deleted test in directory --- test.js | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 test.js diff --git a/test.js b/test.js deleted file mode 100644 index 761daae..0000000 --- a/test.js +++ /dev/null @@ -1,29 +0,0 @@ -var partial = require('./index.js'); -var m3 = function(x,y,z) { - return (x*y) + z; -}; - -var foo = partial(m3); -var baz = partial.rapply(m3); - -// test that you have a function -exports.testfn = function(test) { - test.expect(2); - test.equal('function',typeof foo); - test.equal('function',typeof baz); - test.done(); -}; -exports.testpartial = function(test) { - test.expect(3); - test.equal(10,foo(2,3,4)); - test.equal(10,foo(2,3)(4)); - test.equal(foo(2,3,4),foo(2,3)(4)); - test.done(); -} -exports.testpartialRight = function(test){ - test.expect(3); - test.equal(10,baz(2,3,4)); - test.equal(10,baz(4)(2,3)); - test.equal(baz(2,3,4),baz(4)(2,3)); - test.done(); -}