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.
Your code works, just click Attempt directly or write you own TDD sample tests.
This comment is hidden because it contains spoiler information about the solution
After some digging in the testing code, I see the tests are indeed broken, but not in the way you thought.
Fixed javascript tests, try again.
FYI, until not so long ago, katas that were solved more than 500 times, got their tests locked, so if the tests were broken or bugged nothing could be done. Now that limit was removed and fixing those katas is done when possible. Remember people who fix the katas do that for free and in their own time.
There are no sample tests, because this is an old kata and you had to write it for yourself, have you tried clicking Attempt? And you pasting code has nothing to do with the kata working (for you) or not.
If the kata were broken as you claim, how that many people passed it?
The function's name should be
solution
notshortLongShort
that's why your code doesn't pass the tests. And next time mark your post as having spoiler content.This comment is hidden because it contains spoiler information about the solution
I'm not sure I understand what you mean here... The solution you provided works as expected, and the tests are all correct as far as I can see. If the tests fail, they should print the error message along with the expected and received values that are not matching.
Could you tell me what you think the correct answers should be for each test?, please?