6
comments
good Tester.
If something stupid can be done, it will be done.
33 0 ReplyI've seen this enough times that I laughed without watching it. Funny stuff.
16 0 ReplyThis is why it's important to have tests that assert a system's failure modes too.
shouldFitTriangleInTriangleHole()
shouldNotFitTriangleInAnyOtherHoles()
Bonus points for just parameterizing it.
14 0 Replyassert triangleObject.shouldFitInHole(triangleHole) == true assert triangleObject.shouldFitInHole(squareHole) == false
4 0 Reply
Anything can be a square hole if you're brave enough.
10 0 ReplyIf a function takes all types of variables it's your own fault!
9 0 Reply
6
comments
Scroll to top