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.
Mutating the input should have no effects now
Very smart!
Thank you for this very well documented solution.
I wish everybody would comment like that (especially myself).
I'll vote it "Best Practices".
Thanks! :)
'Expected: no one likes this, instead got: undefined' drives me mad. Tried everything. Putting the response in var didn't help. Chcecking if names.length is not only '==0' but also undefined, '<1' and simply '!names' didn't help too. Is the test that broken?
Same issue, in Ruby. The kata is impossible to finish with these errors on testing.
The test should pass a copy of names (i.e. names[:]) into the likes function. Although it's a potentially poor practice, I made the test choke on itself and give extremely nonsensical results by modifying the elements of the names array within my likes function, and I suspect some other people's problems here result from the same thing.
Python tests seem broken...
pure beauty! :)