• sunbeam60@lemmy.one
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    Yeah but even a single automated test would catch it and reject the PR. You just need a single test.

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago

      No, you can’t assume that. The probability of hitting the condition each time is low. If there aren’t very many calls that hit this, it could easily slip through. Especially on 64-bit int platforms.