Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Thanks for the Console.WriteLine() advice. I didn't know we could use it for logging here in CodeWars.

    Kata is now completed (forgot one Console.WriteLine line at the beginning :))

  • Custom User Avatar

    The negative zero problem seems to be gone. But now I got a new error:

    ✔ 8 assertions passed
    ✘ Expected string length 14 but was 13. Strings differ at index 0.
    Expected: "-195595/564071"
    But was: "195595/564071"
    -----------^

    This input is not included in tests, therefore I can't reproduce it to see what the new problem is. Can you please add it?

  • Custom User Avatar

    ✘ It should work for random inputs too
    Expected string length 6 but was 3. Strings differ at index 0.
    Expected: "-0 1/5"
    But was: "1/5"
    -----------^

    Man, there's no such thing as a negative zero. Fix this please.