Ad
  • Custom User Avatar

    Your code works, just click Attempt directly or write you own TDD sample tests.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

    JavaScript Completions 3663

    If the kata were broken as you claim, how that many people passed it?

  • Custom User Avatar

    The function's name should be solution not shortLongShort that's why your code doesn't pass the tests. And next time mark your post as having spoiler content.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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?