tdd - Testing A Function That Always Returns True -
how 1 write test following function?
bool isaninterger(int ignore) { return true }
i don't have enough time iterate on every integer (for actual code parameter isn't integer).
this used part of specification pattern, can implement null object.
... testing can effective way show presence of bugs, hopelessly inadequate showing absence.
-- edsger w. dijkstra
i'd it's pointless try exhaustively black box test function. better test in context similar used.
Comments
Post a Comment