☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agoDeveloper vs Testermedia.mas.tovideomessage-square11fedilinkarrow-up1148arrow-down18file-text
arrow-up1140arrow-down1videoDeveloper 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-up17·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-up4·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