Thank you for spotting that! I just updated my test cases to have random tests.
Edit: Ok, should be working now.
Ha! Yeah, they're almost the same. Except yours is better described and tested ;) I looked through the approved katas to see if there were similar JS ones, but I hadn't looked through the betas.
Oh sorry, that would make sense. I'm getting familiar with codewars and how this all works- this is my first authored Kata.
I just unflagged it as a spolier.
Yeah, once I fixed the Math.abs problem, that test failed for me too. Hopefully that has also been updated. I'll check again.
Good point, this should not be passing. I'm looking into it now. Thanks for spotting that!
Found the problem and have fixed it. I had a mismatched paranthesis on Math.abs. Thanks again!
Loading collection data...
Thank you for spotting that! I just updated my test cases to have random tests.
Edit: Ok, should be working now.
Ha! Yeah, they're almost the same. Except yours is better described and tested ;) I looked through the approved katas to see if there were similar JS ones, but I hadn't looked through the betas.
Oh sorry, that would make sense. I'm getting familiar with codewars and how this all works- this is my first authored Kata.
I just unflagged it as a spolier.
Yeah, once I fixed the Math.abs problem, that test failed for me too. Hopefully that has also been updated. I'll check again.
Good point, this should not be passing. I'm looking into it now. Thanks for spotting that!
Found the problem and have fixed it. I had a mismatched paranthesis on Math.abs. Thanks again!