You are on page 1of 1

 

Example format to present your answer


Part B:
(i) Test Suite ---All-defs
Note:
All-Defs Coverage
Test cases include a definition-clear path from every definition to some corresponding
use (c-use or p-use).
 
Variable  Path  Input X  Input Y  Output 
X‐1  1, 2, 3, 4(T), 5, 8, 9(T), 10, 11, 12, 9(F), 13(T), 14, 15, 16  2  ‐1  0.5 
Y‐1  1, 2, 3, 4(T), 5, 8, 9(T), 10, 11, 12, 9(F), 13(T), 14, 15, 16  2  ‐1  0.5 
Z‐1  1, 2, 3, 4(T), 5, 8, 9(T), 10, 11, 12, 9(F), 13(T), 14, 15, 16  2  ‐1  0.5 
Z‐2  1, 2, 3, 4(T), 5, 8, 9(T), 10, 11, 12, 9(F), 13(T), 14, 15, 16  2  ‐1  0.5 
P‐1  1, 2, 3, 4(T), 5, 8, 9(T), 10, 11, 12, 9(F), 13(T), 14, 15, 16  2  ‐1  0.5 
 

The assumption here is that you drawn the corresponding CFG, and completed part (i) where you 
have listed that the above variables have been defined and used. 

You might also like