Skip to content

Commit a85d4b5

Browse files
author
Aaron Robinson
committed
Fixed bug in sum test.
1 parent 6fd1b0f commit a85d4b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

02-javascript/assignment-3/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ function testRangeFunction() {
2222
console.log(resultString);
2323
}
2424

25-
// test the range function
25+
// test the sum function
2626
function testSumFunction() {
2727
var resultString = "testSumFunction:";
2828

29-
if (sum(range(1,10) === 55))
29+
if (sum(range(1,10)) === 55)
3030
resultString += "pass";
3131
else
3232
resultString += "fail";

0 commit comments

Comments
 (0)