Add third lab exercise questions.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Tue, 07 Sep 2010 15:16:40 +0530
changeset 128 29e6b1d5e5f5
parent 127 f65aec952da7
child 129 6e237b9442cd
Add third lab exercise questions.
tdd/lab-workbook.rst
--- a/tdd/lab-workbook.rst	Tue Sep 07 14:29:48 2010 +0530
+++ b/tdd/lab-workbook.rst	Tue Sep 07 15:16:40 2010 +0530
@@ -42,4 +42,18 @@
 Lab -3
 ======
 
+  1. Move the tests that were written to GCD function in the examples
+     of this chapter to a separate function called test_gcd(). Do the
+     same for LCM function and num_of_days() function. Make sure when
+     the respective Python files are executed as stand alone scripts
+     these tests executed.
+  2. Put all these files in a single directory called utils and run
+     the nosetests command. Make a report of the results.
+  3. Write doctests to each of the above functions. Demonstrate and
+     report the results as executed by running the doctests using
+     doctest.testmod() function and using nosetests command.
+
+Lab - 4
+=======
+
   1.