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.
I think referring to Codewars Test Docs will help.
Exception is the vague part because the test output just says
Test Failed Exception:Exception Exception:Exception
I was able to get it to pass with a specific Excpetion such as
InputException
. Also seing the solutions now, there are a few different options here but it can't just be raising anException
. Hopefully this is more clear.Description is very vague, but basically author is expecting You to raise an exception if:
a) any char in the string is not a number
b) passed string is empty