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.
And I think your random tests are so much wrong. I cannot put screenshots here, so I'll push the text with Console.logs(). My previous code version did the calculations correctly, but your tests showed issue when:
frac1 = -32783 / -87302
frac2 = -70901 / 96443
They expect "377758809/631610602" (positive).
My correct output is "-377758809/631610602" (negative).
Similarly another example:
-53524/-96771
-76017/4842
Test Failed
Assert.That(Kata.divideFractions(randomFrac1, randomFrac2), Is.EqualTo(expected))
Expected string length 20 but was 21. Strings differ at index 0.
Expected: "259163208/1233693485"
But was: "-259163208/1233693485"
Wtf are these tests?
"The fractions will never be improper."
Meanwhile your tests:
55013/-84661
13455/71078 :)
or
-91877/-61523
82703/79988
Since when deonomiator having "-" sign is a valid fraction? XD
This comment is hidden because it contains spoiler information about the solution
Regex as best practices? Who da hell upvotes this solution?
Who gives this piece of a bad code "best practices"? He could also name every variable a/b/c/d/e/f....
WHO DA HELL VOTES FOR THE BEST PRACTICES? It's soooooooo SLOW!
Who press the "Best Practices" button? This solution is slower than turtle....
Wait, I can't get it, how it is possible to take a number to the power of even number and get the result with minus?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution