assert.deepEqual, which is necessary for comparing arrays, is sufficient for comparing primitive values.
I was too lazy to tailor tests to expected values to the extent of having assert.equal for primitives and .deepEqual for lists. Writing them was enough $EXPLETIVE work already. ( The tests are bigger than most, probably even any, solutions. )
If you do not want cheaters, you have to make it more challenging. ;)
assert.deepEqual
, which is necessary for comparing arrays, is sufficient for comparing primitive values.I was too lazy to tailor tests to expected values to the extent of having
assert.equal
for primitives and.deepEqual
for lists. Writing them was enough$EXPLETIVE
work already. ( The tests are bigger than most, probably even any, solutions. )Sorry for the confusion.
It means you returned
4
while instead the correct answer was3
.