accumulator
should be a function.
testString: assert(typeof accumulator === 'function');
- text: accumulator(0)
should return a function.
testString: assert(typeof accumulator(0) === 'function');
- text: accumulator(0)(2)
should return a number.
testString: assert(typeof accumulator(0)(2) === 'number');
- text: Passing in the values 3, -4, 1.5, and 5 should return 5.5.
testString: assert(testFn(5) === 5.5);
```