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