summaryrefslogtreecommitdiff
path: root/tdd
diff options
context:
space:
mode:
authorMadhusudan.C.S2010-09-07 15:16:40 +0530
committerMadhusudan.C.S2010-09-07 15:16:40 +0530
commit7d0a1049c3c1b554d80ccc1590a7c3621b221d33 (patch)
tree6a51d5c62e623114167069a3d32d39cb0e892555 /tdd
parentbd3583e0aee0d6c0d1e495bce8fd847d20966096 (diff)
downloadsees-7d0a1049c3c1b554d80ccc1590a7c3621b221d33.tar.gz
sees-7d0a1049c3c1b554d80ccc1590a7c3621b221d33.tar.bz2
sees-7d0a1049c3c1b554d80ccc1590a7c3621b221d33.zip
Add third lab exercise questions.
Diffstat (limited to 'tdd')
-rw-r--r--tdd/lab-workbook.rst14
1 files changed, 14 insertions, 0 deletions
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.