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.
Thanks for completing the Kata, a good and compact solution! I just used plain text spaces in the test expectation as Codewars displays in plain text.
Yes, only the name in
fruitsName
is fruit ;-)The list is preloaded for you under fruitsName in JS and $fruits_name in Ruby.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I tried a few solutions in JS: no problem. See if you don't have an extra "\n" at the end of your result.
Please which language?
the Test failure message puts a comma between
expected
andinstead got
, it's a little misleading that way. You might have some trailing whitespace if it's failing only on the random tests. Hope that helps