Testing Basics

Testing your solutions is very important, and it can take a while to learn how to be a good tester.

One commonly used, effective way is to write a test plan.:w

A test plan is a written list of example inputs and the expected output from your programs. A test plan does not require a specific format, but often a table can make it very clear. Here is a test plan for a Grading Criteria Algorithm.

Figure 2-6: Test Plan for our Grading Criteria Algorithm

Were you able to correctly identify the bounds, branch, and error tests?

Here is a discussion about how to correcty identify the inidividual test cases listed above.