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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -