Merge pull request #8 from Dareon4/master

zero factorial is 1
This commit is contained in:
Cody Loyd 2018-01-02 08:47:47 -06:00 committed by GitHub
commit 1e4013508d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ describe('power', function() {
describe('factorial', function() { describe('factorial', function() {
it('computes the factorial of 0', function() { it('computes the factorial of 0', function() {
expect(calculator.factorial(0)).toEqual(0); expect(calculator.factorial(0)).toEqual(1); // 0! = 1
}); });
it('computes the factorial of 1', function() { it('computes the factorial of 1', function() {