Skip to content

Commit 122eeff

Browse files
author
James Fraser
committed
Fixed natural summing specs so that they are below 1000 rather than up to 1000.
1 parent d86a9df commit 122eeff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

koans/AboutApplyingWhatWeHaveLearnt.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe("About Applying What We Have Learnt", function() {
4949
it("should add all the natural numbers below 1000 that are multiples of 3 or 5 (imperative)", function () {
5050

5151
var sum = 0;
52-
for(var i=1; i<=1000; i+=1) {
52+
for(var i=1; i<1000; i+=1) {
5353
if (i % 3 === 0 || i % 5 === 0) {
5454
sum += i;
5555
}
@@ -62,7 +62,7 @@ describe("About Applying What We Have Learnt", function() {
6262

6363
var sum = FILL_ME_IN; /* try chaining range() and reduce() */
6464

65-
expect(234168).toBe(FILL_ME_IN);
65+
expect(233168).toBe(FILL_ME_IN);
6666
});
6767

6868
/*********************************************************************************/

0 commit comments

Comments
 (0)