☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agoDeveloper vs Testermedia.mas.tovideomessage-square6fedilinkarrow-up1134arrow-down17file-text
arrow-up1127arrow-down1videoDeveloper vs Testermedia.mas.to☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agomessage-square6fedilinkfile-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'forlinkfedilinkarrow-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