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 comment is hidden because it contains spoiler information about the solution
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 :))
Added that one to Example Test Cases.
You can actually use Console.WriteLine() to see print anything you want to console. This helps in debugging a lot.
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?
Could you please try again?
Nice kata, that sign before zero was killing me ;).
The random tests are broken (Ruby):
Testing for mixed_fraction(973816/-835922)
It should work for random inputs too - Expected: "1 68947/417961", instead got: "-1 68947/417961"
Testing for mixed_fraction(-67347/602450)
It should work for random inputs too - Expected: "67347/602450", instead got: "-67347/602450"
also the sign problem for random inputs
Testing for mixed_fraction(474690/-834562)
✘ It should work for random inputs too - Expected: "237345/417281", instead got: "-237345/417281"
Testing for mixed_fraction(430664/-898557)
✘ It should work for random inputs too - Expected: "430664/898557", instead got: "-430664/898557"
✘ 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.