Skip to content

Commit

Permalink
Merge pull request kolodny#20 from asendia/master
Browse files Browse the repository at this point in the history
Add corner case assertion to curry test
  • Loading branch information
kolodny committed Jun 17, 2015
2 parents 03d576d + 838a73f commit 7e19c55
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions curry/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ describe('curry', function() {
assert.equal(add(1)(2)(3), 6);
assert.equal(add(2)(3)(4), 9);
});

it("doesn't only work with addition", function() {
var merge = curry(function(a, b, c) {
return [a, b, c].join(', ');
});
assert.equal(merge('1')(2)(3), '1, 2, 3');
});


});

0 comments on commit 7e19c55

Please sign in to comment.