in reply to (OT) Help with test design
One of the methods is an implementation of the minimax algorithm. How would I go about testing this?
I'm a bit surprised by this question. My first reaction would "test it like you always test", but apparently, that isn't working for you. Which makes me wonder, how *do* you test? I test by giving the functionality I want to test input of which I know the output should be, and whether what I get is what I expect. Why wouldn't that work for a minimax algorithm? That algorithm doesn't depend on the phases of the moon, does it?
It's the same for the XS code. Test it the same way as you test Perl code. For the user it doesn't matter whether the implementation is pure Perl or XS, so why should it matter for the tests?
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: (OT) Help with test design
by dragonchild (Archbishop) on Sep 11, 2003 at 14:38 UTC | |
by halley (Prior) on Sep 11, 2003 at 16:45 UTC | |
by wufnik (Friar) on Sep 12, 2003 at 09:59 UTC |