We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f4c1ca commit 5c78dc7Copy full SHA for 5c78dc7
calculator/calculator.spec.js
@@ -56,7 +56,7 @@ describe('power', function() {
56
57
describe('factorial', function() {
58
it('computes the factorial of 0', function() {
59
- expect(calculator.factorial(0)).toEqual(0);
+ expect(calculator.factorial(0)).toEqual(1); // 0! = 1
60
});
61
62
it('computes the factorial of 1', function() {
@@ -74,4 +74,4 @@ describe('factorial', function() {
74
it('computes the factorial of 10', function() {
75
expect(calculator.factorial(10)).toEqual(3628800);
76
77
-});
+});
0 commit comments