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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thanks for help. I didn't realise where my mistake was.
I think there is a problem with your code:
func
must be applied to each element of the list, not to the whole list. Beware,func
argument ofmap
is different fromfunc
you defined above.Issue is with Python for me. As an example - when random input is [7, -4, 4, 2], the output I get is:
"It should work for random inputs too: [False, True, True, True] should equal ['array should contain only numbers', 'array should contain only numbers', 'array should contain only numbers', 'array should contain only numbers']"
When clearly [False, True, True, True] is the correct answer.
What do you mean? Can you give examples? Which languages? There is no issue until you proved there is actually one. I completed this kata in JS and Python and I see no problem.
Random tests don't work for this kata.