Data-driven testing
Paddy McCarthy
paddy3118 at netscape.net
Wed Apr 23 16:58:00 EDT 2003
aahz at pythoncraft.com (Aahz) wrote in message news:<b867d7$f53$1 at panix2.panix.com>...
> As I just mentioned in another post, I'm writing an ASCII database for
> my address book. Actually, the main reason for writing it was because
> I've been maintaining multiple lists for various kinds of party invites,
> and the update problem was killing me.
>
<<SNIP>>
>
> But firstly, I ran into the same problem I had when writing the BCD
> module: how the heck does one write tests when the results are
> hand-calculated? There were several times when I wrote what I thought
> were correct tests for the BCD module, and my code was right and my test
> was wrong.
>
> In the case of my ASCII database, I'm going to need a big matrix to
> properly test the query language. How do I build that matrix?
You could use another language, another algorithm or both, and check
one against the other.
Cheers, Pad.
More information about the Python-list
mailing list