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 solution passes the test cases but not the specified criteria. the criteria says it should be case-insensitive.
this solution only works for alligator and ALLIGATOR. it would fail if AlLiGaTOR or any other version were tested
Duplicate of Return a string's even characters.
Yet, you translated it anyway xD
This comment is hidden because it contains spoiler information about the solution
.
1º Wrong description. You have to return a string with those chars on an even position
2º Your test cases expect an array, not a string
Thank you for all the feed back, I will use your suggestions and fix it when I get home.
In the initial solution, you left this code:
Do you want us return an array?
Hmm.. The answer seems to be "Yes". Because some expected values in your example(sample) tests are arrays(Except for the first one). The bad news is that
Test.assertEquals
doesn't works with array. At the moment, I want tell you the truth, after I write a code and click theattempt
button..Damn, What did I see?
The expected value is string?
And, no random tests. Why do I have to write so much code? I hate myself..
The description is a mess, as are the example tests. And the space has no effect whatsoever, it's just a character; why even mention it?
If you do some cleaning up and fixing up, this could be a nice little kata. As it is .. well, it's a mess. Which is a shame.
I am a year late, but what does the ! mean ? Never mind, I got it. Had a brain fart
Incomplete testing. Solutions that would wash his socks pass.
Also,
pants.inStorage
andpants.inWashing
should probably not be accassible; according to the description you're supposed to go through the class methods.This was a pretty good Kata, I solved it by using the inWashing and inStorage vars, not sure if you meant for that. If you didn't change it, but it was pretty fun.
Toughest kata ever!
Where are daredevils now!