You must log in or register to comment.
good Tester.
If something stupid can be done, it will be done.
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
I’ve seen this enough times that I laughed without watching it. Funny stuff.
If a function takes all types of variables it’s your own fault!
Anything can be a square hole if you’re brave enough.
Poor development! If something can be done, people will do it.
Best way is to not allow it and provide no feedback.
Wait, provide no feedback?