@[email protected] to Programmer [email protected] • 2 years agoIt gets better the longer it runsfeddit.deimagemessage-square37fedilinkarrow-up1518arrow-down112
arrow-up1506arrow-down1imageIt gets better the longer it runsfeddit.de@[email protected] to Programmer [email protected] • 2 years agomessage-square37fedilink
minus-square@average650link28•2 years agoWhy not just test all even numbers greater than 2? It covers infinite numbers and passes 100% of the time.
minus-square@[email protected]linkfedilink2•2 years 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