Newsgroups: comp.lang.python
From: Steve Howell <showel...@yahoo.com>
Date: Sun, 27 May 2007 12:00:16 -0700 (PDT)
Local: Mon, May 28 2007 5:00 am
Subject: Re: ten small Python programs
--- Steven Bethard <steven.beth...@gmail.com> wrote: > Steve Howell wrote: Maybe this is the first good example that motivates a > > --- Steven Bethard <steven.beth...@gmail.com> > wrote: > >> I think I would rewrite the current unit-testing > >> example to use the > >> standard library unittest module:: > >> # Let's write reusable code, and unit test > self.failUnlessEqual(add_money([0.13, > self.failUnlessEqual(add_money([100.01, > > Just a minor quibble, but wouldn't you want the > That would be fine too. In the real world, I'd put hyperlink to alternatives. Would you accept the idea that we keep my original example on the SimplePrograms page, but we link to a UnitTestingPhilosophies page, and we show your alternative there? Or vice versa, show your example on the first page, but then show mine on the hyperlinked page? I am in 100% agreement with you that most unit tests ___________________________________________________________________________ _________Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. 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.
| ||||||||||||||