Module Name: HiLoTemps |
Project: Training |
Author: Seth Marinello |
Tester: |
Date: 2/14/05 |
Test Date: |
Branch/Loop/Path |
Possible Outcomes |
Test Cases |
|||||||||
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
||
if (NewTemperature < Low) |
T |
X |
X |
X |
X |
X |
X |
X |
|
|
|
|
F |
|
X |
|
|
|
X |
|
|
|
|
if (NewTemperature > High) |
T |
X |
X |
X |
X |
X |
X |
X |
|
|
|
|
F |
|
X |
|
|
|
|
X |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Case # |
Input Values |
Expected Outcomes |
Actual Outcomes |
1 |
30 |
Low = 30 High = 30 |
|
2 |
30, 40, 20, 80 |
Low = 20 High 80 |
|
3 |
35, 100, 10000 |
Low = 35 High 10000 |
|
4 |
0 |
Low = 0, High = 0 |
|
5 |
-100 |
Low = -100, High = -100 |
|
6 |
-100 5 |
Low = -100, High = 5 |
|
7 |
32 -5 |
Low = -5, High = 32 |
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|