leftFactorial
should be a function.
testString: assert(typeof leftFactorial == 'function');
- text: leftFactorial(0)
should return a number.
testString: assert(typeof leftFactorial(0) == 'number');
- text: leftFactorial(0)
should return 0
.
testString: assert.equal(leftFactorial(0), 0);
- text: leftFactorial(1)
should return 1
.
testString: assert.equal(leftFactorial(1), 1);
- text: leftFactorial(2)
should return 2
.
testString: assert.equal(leftFactorial(2), 2);
- text: leftFactorial(3)
should return 4
.
testString: assert.equal(leftFactorial(3), 4);
- text: leftFactorial(10)
should return 409114
.
testString: assert.equal(leftFactorial(10), 409114);
- text: leftFactorial(17)
should return 22324392524314
.
testString: assert.equal(leftFactorial(17), 22324392524314);
- text: leftFactorial(19)
should return 6780385526348314
.
testString: assert.equal(leftFactorial(19), 6780385526348314);
```