☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agoDeveloper vs Testermedia.mas.tomessage-square11fedilinkarrow-up1150file-text
arrow-up1150playDeveloper vs Testermedia.mas.to☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agomessage-square11fedilinkfile-text
Your browser does not support playing HTML5 video. You can download a copy of the video file instead.
minus-squaredeadbeef79000@lemmy.nzlinkfedilinkarrow-up16·edit-22 months agoThis is why it’s important to have tests that assert a system’s failure modes too. shouldFitTriangleInTriangleHole() shouldNotFitTriangleInAnyOtherHoles() Bonus points for just parameterizing it.
minus-squareelvith@feddit.orglinkfedilinkarrow-up3·2 months ago assert triangleObject.shouldFitInHole(triangleHole) == true assert triangleObject.shouldFitInHole(squareHole) == false
This is why it’s important to have tests that assert a system’s failure modes too.
shouldFitTriangleInTriangleHole()
shouldNotFitTriangleInAnyOtherHoles()
Bonus points for just parameterizing it.
assert triangleObject.shouldFitInHole(triangleHole) == true assert triangleObject.shouldFitInHole(squareHole) == false