combinations
should be a function.");'
- text: ''
testString: 'assert(Array.isArray(combinations([1, 2, 3], 6)), "combinations([1, 2, 3], 6)
should return an Array.");'
- text: ''
testString: 'assert(combinations(nums, total).length === len, "combinations([1, 2, 3, 4, 5, 6, 7], 12)
should return an array of length 14.");'
- text: ''
testString: 'assert.deepEqual(combinations(nums, total), result, "combinations([1, 2, 3, 4, 5, 6, 7], 12)
should return all valid combinations.");'
```