☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agoDeveloper vs Testermedia.mas.tovideomessage-square9fedilinkarrow-up1144arrow-down18file-text
arrow-up1136arrow-down1videoDeveloper vs Testermedia.mas.to☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agomessage-square9fedilinkfile-text
Your browser does not support playing HTML5 video. You can download a copy of the video file instead.
minus-squaredeadbeef79000@lemmy.nzlinkfedilinkarrow-up15·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 Ma'for@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