☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agoDeveloper vs Testermedia.mas.tovideomessage-square11fedilinkarrow-up1149arrow-down17file-text
arrow-up1142arrow-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-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-squareich_iel@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