# HG changeset patch # User Madhusudan.C.S # Date 1279046994 -19800 # Node ID 0afd25eadf41d15045593ccf71d9eb0cd7c530ba # Parent d90e054894cdf28ec58a6370b11f103b1831ce95 Add a section on real life tests. diff -r d90e054894cd -r 0afd25eadf41 tdd/tdd.rst --- a/tdd/tdd.rst Tue Aug 31 19:10:09 2010 +0530 +++ b/tdd/tdd.rst Wed Jul 14 00:19:54 2010 +0530 @@ -6,8 +6,8 @@ code that doesn't even exist yet. The actual code is written later to pass the test and then refactored. -Writing tests -============= +First "Test" +============ Writing a test is simple. Writing a failing test? It is much more simple. Let us consider a very simple program which returns the Greatest Common @@ -76,3 +76,9 @@ exit(1) print "All tests passed!" + +More realistic "Tests" +====================== + +Now we have completed writing our first test. Let us start writing tests +for more realistic