Newsgroups: comp.lang.python
From: Steven Bethard <steven.beth...@gmail.com>
Date: Sun, 27 May 2007 11:08:43 -0600
Local: Mon, May 28 2007 3:08 am
Subject: Re: ten small Python programs
Steve Howell wrote: I think I would rewrite the current unit-testing example to use the > --- Steven Bethard <steven.beth...@gmail.com> wrote: >> Very cool! Do you mind putting this up on the Wiki >> somewhere so that we >> can link to it more easily? Maybe something like: >> http://wiki.python.org/moin/SimplePrograms > Done. standard library unittest module:: # Let's write reusable code, and unit test it. I believe I've still kept it to 13 lines. STeVe P.S. The "right" way to add money is using the decimal module, but I You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||