[Tutor] unwanted 'zero' ending

Fábio Santos fabiosantosart at gmail.com
Fri Jun 28 11:34:53 CEST 2013


On 28 Jun 2013 08:33, "Peter Otten" <__peter__ at web.de> wrote:
>
> Whatever approach you pick, unittest, doctest, or a combination, your code
> will improve -- not just because you are verifying its correctness to some
> extent, but also because the inherent question "How can I test it?" will
> lead to a better overall structure.

This is the thing I've found to be most useful when I first started writing
tests. When I go test-first and write your test for a new function, that's
when the signature becomes obvious to me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130628/2d3fb9cd/attachment-0001.html>


More information about the Tutor mailing list