Example Test Plan
Student | Joe Student |
Program | Find Hypotenuse |
No. | Description | Input Data | Expected Output |
1 | Verify prompt. | Enter the lengths of the two sides. | |
2 | Verify calculations with simple numbers sqrt(32 + 42) = sqrt(9 + 16) = sqrt (25) |
3.0 4.0 | Enter
the lengths of the two sides.
The length of side A is 3.00 The length of side B is 4.00 The length of the hypotenuse is 5.00 |
3 | Result has decimal places.
Positive float |
4.0 5.0 | 6.40 |
5 | Boundary Condition:
zero |
0.0 0.0 | 0 |
6 | Valid Data:
two digit float |
10.0 12.0 | 15.62 |
7 | Valid Data:
first number larger |
12.0 10.0 | 15.60 |