Gollum@feddit.de to Programmer Humor@programming.dev · 9 months agoMe after I got firedfeddit.deimagemessage-square48fedilinkarrow-up181arrow-down11
arrow-up180arrow-down1imageMe after I got firedfeddit.deGollum@feddit.de to Programmer Humor@programming.dev · 9 months agomessage-square48fedilink
minus-squaresunbeam60@lemmy.onelinkfedilinkarrow-up0·9 months agoYeah but even a single automated test would catch it and reject the PR. You just need a single test.
minus-squarefrezik@midwest.sociallinkfedilinkarrow-up1·9 months agoNo, 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.
Yeah but even a single automated test would catch it and reject the PR. You just need a single test.
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.