3.2 Randomized Testing
In addition to all the examples, which serve as both demonstrations
and tests of your code, you should also create a test suite. Think of
this as a program that will run for a while and ``tries'' to crash
your code using randomly generated input. Your test code should
define a class Test with a random() method that runs
random tests. These are all assembled together later, and each test
is run for a certain amount of time on a regular basis.
Release 2008.07.11, documentation updated on July 11, 2008.
See About this document... for information on suggesting changes.