sumsq
should be a function.
testString: assert(typeof sumsq == 'function', 'sumsq
should be a function.');
- text: sumsq([1, 2, 3, 4, 5])
should return a number.
testString: assert(typeof sumsq([1, 2, 3, 4, 5]) == 'number', 'sumsq([1, 2, 3, 4, 5])
should return a number.');
- text: sumsq([1, 2, 3, 4, 5])
should return 55
.
testString: assert.equal(sumsq([1, 2, 3, 4, 5]), 55, 'sumsq([1, 2, 3, 4, 5])
should return 55
.');
- text: sumsq([25, 32, 12, 7, 20])
should return 2242
.
testString: assert.equal(sumsq([25, 32, 12, 7, 20]), 2242, 'sumsq([25, 32, 12, 7, 20])
should return 2242
.');
- text: sumsq([38, 45, 35, 8, 13])
should return 4927
.
testString: assert.equal(sumsq([38, 45, 35, 8, 13]), 4927, 'sumsq([38, 45, 35, 8, 13])
should return 4927
.');
- text: sumsq([43, 36, 20, 34, 24])
should return 5277
.
testString: assert.equal(sumsq([43, 36, 20, 34, 24]), 5277, 'sumsq([43, 36, 20, 34, 24])
should return 5277
.');
- text: sumsq([12, 33, 26, 18, 1, 16, 3])
should return 2499
.
testString: assert.equal(sumsq([12, 33, 26, 18, 1, 16, 3]), 2499, 'sumsq([12, 33, 26, 18, 1, 16, 3])
should return 2499
.');
```