| Prev | Testing and Code Coverage | Next |
Boolean expression
Ensure all terms in the expression are exercised
a if $x || $y;
Four combinations of values for $x and $y
$x $y
0 0
0 1
1 0
1 1
For 100% condition coverage all four must be taken
continued...
| Slide 29 | YAPC::Europe::2002 | Copyright © 2002 Paul Johnson |