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.
Test cases updated
fixed
Thanks for your advice, I've updated kata solution and test cases.
Nice kata. A good training of one's OOP basic skills.
This comment is hidden because it contains spoiler information about the solution
The kata can be cheated as it has only dotcom domains in check cases. Please add new tests so that it cannot be so easily cheated.
The task for this Kata is unclear. I supposed it needed an array with even numbers filtered out.
You should check whether the argument is a list or not and return an empty list if it is not.
I have spent an hour trying to get why my seemingly perfect check for the argument is an integer condition in the function does not work on booleans (the 8th test by author) until I found that
the built-in Python function isinstance to which I passed the argument for check - isinstance(n, int) returns True if you pass a boolean to it.
That's because bool is a subclass of int in Python
http://stackoverflow.com/questions/8169001/why-is-bool-a-subclass-of-int