# HG changeset patch # User Madhusudan.C.S # Date 1283852800 -19800 # Node ID 29e6b1d5e5f5c170095ba32d290f57980a37f19e # Parent f65aec952da7ee9518b06934d4da1a03b6c39d94 Add third lab exercise questions. diff -r f65aec952da7 -r 29e6b1d5e5f5 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.