Skip to content
This repository has been archived by the owner on Mar 18, 2020. It is now read-only.

Commit

Permalink
add new test on factorial
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Jan 30, 2017
1 parent 8f5ac39 commit 6b60590
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/statistical.base.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,10 @@ describe('StatisticalBase', () => {

assert.equal(res, 5);
});

it('should return the factorial of any number', () => {
const res = statisticalBase.factorial(5);

assert.equal(res, 120);
});
});

0 comments on commit 6b60590

Please sign in to comment.