[Tutor] Please help to debug this function.. it takes a date and num. of days and returns startdate and enddate (fwd)
Danny Yoo
dyoo at hkn.eecs.berkeley.edu
Mon Nov 6 20:22:29 CET 2006
[Forwarding to Tutor; busy at the moment]
---------- Forwarded message ----------
Date: Mon, 6 Nov 2006 18:41:54 +0000
From: Asrarahmed Kadri <ajkadri at googlemail.com>
To: Danny Yoo <dyoo at hkn.eecs.berkeley.edu>
Subject: Re: [Tutor] Please help to debug this function.. it takes a date and
num. of days and returns startdate and enddate
Hi Danny,
Can you please test it !!!
Also I would like to know if it can be coded in a better way...
TIA.
Regards,
Asrarahmed
On 11/6/06, Danny Yoo <dyoo at hkn.eecs.berkeley.edu> wrote:
>
>
>
> On Mon, 6 Nov 2006, Asrarahmed Kadri wrote:
>
>> I have written a function that takes a date and an integer representing
>> the number of days.
>>
>> Please test it, comment on the logic .
>
>
> Hi Asrarahmed,
>
> You should be able to write your own tests too. You might want to look
> at:
>
> http://www.diveintopython.org/unit_testing/index.html
>
> for an example of how to write unit tests; the author there goes through
> an example with a Roman Numeral program written with unit tests.
>
--
To HIM you shall return.
More information about the Tutor
mailing list