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.
As @JohanWiltink said, the testing is too limited even for an easy
8 kyu
. More specifically:Codewars Forums - Kata Best Practices - Have Full Code Coverage
Only 4 fixed assertions in the entire Test Suite is far from sufficient for preventing logically flawed and/or hardcoded solutions from passing. Please either (1) increase the number of unique, distinct fixed assertions to at least 20 including edge cases or (2) even better, write 100+ random tests as per standard Codewars practice and is favored over just 20+ fixed tests.
Duplicate:
https://www.codewars.com/kata/enumerable-magic-number-3-does-my-list-include-this
Your example solution seems to indicate you didn't know there's a standard
Array
method for this. There is. If the point of this exercise was to point out there is a standardArray
method for this, it worked for you. :PTesting is too limited, even for an 8kyu.