in reply to writing tests on modules
As for how thorough you want to make your tests, that's up to you. If your bounds checking is essential to your module or you think it's likely to break, check it; otherwise skip it.
For testing random scripts, srand can be useful to make sure that rand will always return the same sequence while testing. You can also call the function you're testing several times, and make sure the results are consistent and not all the same.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: writing tests on modules
by xdg (Monsignor) on Nov 28, 2005 at 15:33 UTC |