From 7d0a1049c3c1b554d80ccc1590a7c3621b221d33 Mon Sep 17 00:00:00 2001 From: Madhusudan.C.S Date: Tue, 7 Sep 2010 15:16:40 +0530 Subject: Add third lab exercise questions. --- tdd/lab-workbook.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tdd') diff --git a/tdd/lab-workbook.rst b/tdd/lab-workbook.rst index 8bf1f79..1bcc0ed 100644 --- a/tdd/lab-workbook.rst +++ b/tdd/lab-workbook.rst @@ -42,4 +42,18 @@ Lab - 2 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. -- cgit