tdd/lab-workbook.rst
changeset 128 29e6b1d5e5f5
parent 127 f65aec952da7
child 129 6e237b9442cd
equal deleted inserted replaced
127:f65aec952da7 128:29e6b1d5e5f5
    40 
    40 
    41 
    41 
    42 Lab -3
    42 Lab -3
    43 ======
    43 ======
    44 
    44 
       
    45   1. Move the tests that were written to GCD function in the examples
       
    46      of this chapter to a separate function called test_gcd(). Do the
       
    47      same for LCM function and num_of_days() function. Make sure when
       
    48      the respective Python files are executed as stand alone scripts
       
    49      these tests executed.
       
    50   2. Put all these files in a single directory called utils and run
       
    51      the nosetests command. Make a report of the results.
       
    52   3. Write doctests to each of the above functions. Demonstrate and
       
    53      report the results as executed by running the doctests using
       
    54      doctest.testmod() function and using nosetests command.
       
    55 
       
    56 Lab - 4
       
    57 =======
       
    58 
    45   1. 
    59   1.