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.
So, are we supposed to check if it's valid or format it to become valid?
What do you mean by "pass it"? Is it like return the input immediately or proceed with the extra formatting you didn't mention in the description?
No it didn't. It expected a string instead. Either revise the description or fix the test.
No random tests ~~ so https://www.codewars.com/kata/reviews/566a93b343bc63e95f000098/groups/5fe2fe79cbd8150001746d17 passes easily ๐
Else it goes to error
doesn't really mean much. Would you like an error to be thrown? To be returned? Or some specific value to be returned?I'd recommend actually testing "9", as I don't think my solution actually handles that, though it passed.
Speaking of which, it would be a good idea to add randomly generated tests to the kata, to cover anything you may not have thought of.