Ad
  • Custom User Avatar

    Just passed this kata in JS, I can confirm it expects you to return '' for no result. As you can see from the output, your solution returns 'none' instead.

    I'm marking this issue as resolved, since it's definitely not a kata issue.

  • Custom User Avatar

    Hello. Sorry i forgot to specify. I used Javascript to solve it. At the end i returned "" instead of none.

  • Custom User Avatar

    What language are you using?

    Generally, '' (empty string) and null or None (a special object that defines no value at all) are not equal.

  • Custom User Avatar

    Thanks for this, Candice. I couldn't find out what was wrong with my solution but i checked your question and also changed the final return of my function from "none" to " ". So, this makes me think that the problem is with the test case.

  • Custom User Avatar

    Hello, everyone. I tried to do the exercise but it failed miserably, so i tried another solution and gladly almost all tests passed except for one of them. The test where the string is 'abba', it says it should return "none" but my solution returns " " (nothing) but I tested it in my computer and the return is the expected value ("none") with strings where all characters are repeated.

    This is the test where it fails: should handle all repeating strings
    abba -> expected 'none' to equal ' '

    Even though the exercise was entertaining.