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

Popular posts from this blog

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -