Ad
  • Custom User Avatar

    Use built-in python integer division. And report a wrong case if it happens, not what you think could happen.

    Python random tests generator has a protection against generating division by zero in the expression, and there is no fixed test with division by zero either, so...

  • Custom User Avatar

    you're not saying that the tests generate such a case. you're not using those words. if it does, that is an issue. you're being vague about where 3 4 9 / / comes from, but I'm guessing you came up with it. which means it didn't happen in the kata. which means there is no issue to report.

    an issue needs to demonstrate the problem in a reproducible way. tbh, issue reviewers will probably dig more than they're willing to admit, but if your issue is incorrect and you're sharing something that's multiple steps of reasoning away from the bug itself, then the person reading your issue is not going to be making the same mistake as you and thus won't encounter anything being wrong and will therefore not "get it".

    I'm guessing your code divides by zero. cool. go debug it. start by finding out what input your code fails on.

  • Custom User Avatar

    3 * (4 / 9) = 0 using integer division. Please check your math.