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.
This comment is hidden because it contains spoiler information about the solution
Please consider me a n00b specially in unit test but I really want this kata to get better.
Can you tell me how to make a test whether or not
reduce
was used?Also I don't know if its possible to test if the solution has recursion. Thanks!
I am new to unit testing, how can I use assert.deepEqual?
My code is passing all the test, but when I submit it, it says
Should handle negative numbers - Expected: 40, instead got: -20
Any tip in handling negative numbers?