
Implementing a test plan means that you run each of the test cases described in
the test plan and record the results. If the results are not as expected, you must go back
to your design and find and correct the error(s). The process stops when each of the
test cases gives the expected results. Although an implemented test plan gives you a
measure of confidence that your program is correct, all you know for sure is that your
program works correctly on your test cases. Therefore, the quality of your test cases is
extremely important.
An example of a test plan for the code fragment that tests temperatures is shown
on the next page. We assume that the fragment ...