From d776c870c82fe38eedd78d870ff0a4c3b872129e Mon Sep 17 00:00:00 2001 From: Madhusudan.C.S Date: Wed, 14 Jul 2010 00:19:54 +0530 Subject: Add a section on real life tests. --- tdd/tdd.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tdd') diff --git a/tdd/tdd.rst b/tdd/tdd.rst index 9455b67..7044dc6 100644 --- a/tdd/tdd.rst +++ b/tdd/tdd.rst @@ -6,8 +6,8 @@ development which banks on the idea of writing test cases that fail for the 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 @@ tests? So what else should we wait for? Let us write our first test!:: 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 -- cgit