SomeBoyo@feddit.de to Programmer Humor@programming.dev · 1 year agoIt gets better the longer it runsfeddit.deimagemessage-square37fedilinkarrow-up1518arrow-down111
arrow-up1507arrow-down1imageIt gets better the longer it runsfeddit.deSomeBoyo@feddit.de to Programmer Humor@programming.dev · 1 year agomessage-square37fedilink
minus-squareaverage650@lemmy.worldlinkfedilinkarrow-up28arrow-down1·1 year agoWhy not just test all even numbers greater than 2? It covers infinite numbers and passes 100% of the time.
minus-squareKogasa@programming.devlinkfedilinkarrow-up26·1 year agoIt’s important to test edge cases.
minus-squaretwo_wheel2@lemm.eelinkfedilinkarrow-up2·1 year agoWe’ll grab those in integration and E2E tests… let’s just stick with even numbers such that 2 < n < 1002… that’s 1000 cases, more than enough, and 100% test coverage
Why not just test all even numbers greater than 2? It covers infinite numbers and passes 100% of the time.
It’s important to test edge cases.
We’ll grab those in integration and E2E tests… let’s just stick with even numbers such that 2 < n < 1002… that’s 1000 cases, more than enough, and 100% test coverage
Wouldn’t that be 499 cases?
Well shit. No more lemmy while drunk