def programming


If you're actually doing TDD, you're throwing away tests all the time, as your understanding of what the code is changes.

Testing can show the presence of errors, but not their absence.

The Three Laws of TDD:

1) You may not write production code until you have written a failing unit test.
2) You may not write more of a unit test than is sufficient to fail, and not compiling is failing.
3) You may not write more production code than is sufficient to pass the currently failing test.

Built with using

Source code available @ githubpull requests are more than welcome ;-)