Design test cases for the program below.And make the test cases satisfy the condition coverage standard.
public void work ( int x, int y, int z ) {
1 int k = 0, j = 0;
2 if ( (x>3) && (z<10) ){
3 k = x * y - 1;
4 j = sqrt ( k );
5 }
6 if( ( x==4 ) || ( y>5 ) )
7 j = x * y + 10;
8 j = j % 3;
}
Aucun commentaire:
Enregistrer un commentaire