sum(0,1,2)
should be 3");'
- text: ''
testString: 'assert(sum(1,2,3,4) === 10, "The result of sum(1,2,3,4)
should be 10");'
- text: ''
testString: 'assert(sum(5) === 5, "The result of sum(5)
should be 5");'
- text: ''
testString: 'assert(sum() === 0, "The result of sum()
should be 0");'
- text: ''
testString: 'getUserInput => assert(getUserInput("index").match(/function\s+sum\s*\(\s*...args\s*\)\s*{/g), "The sum
function uses the ...
spread operator on the args
parameter.");'
```