Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
then you get trouble with
solution([1,2,3], 3, 'errr')
With the above solution,
solution([1,2,3], -3, 'errr')
will give you'errr'
, while the correct output should be1
.Your test is different from mine, because it does not test
solution(array, -array.size, default_value)
Yeah, it's my first Kata and the tests are kind of sloppy, I am little concerned about the overall quality
This is wrong. think about
solution([1,2,3], -3, 'errr')