The homewark 2 of Software Testing
Case ①:
Fault: i>0
Case that does not execute the fault : x = [], y=1
Case that executes the fault but not result in an error: x=[0,1,2], y=1
Case that result in an error but not a failure: x=[0,1,2], y=0
Case ②:
Fault: for(int i=0;i<x.length;i++)
Case that does not execute the fault : x = [0]
Case that executes the fault but not result in an error: x=[0,1,2]
Case that result in an error but not a failure: x=[0,1,0]