Generate minimal test cases that satisfies loop boundary


Question:

Minimal test case and loop boundary

Given the following code:

void abcd(int a, int b, int c, int d)

{

int m, i, j;

m=11; i=a+b;

while ((c+d+ I )>i)

{

 i=i+1;

j=c+d-a-b-1;

if(j>1)

{

j=m+j;

}

if(m>1)

{

g();

}

}

Generate minimal test cases that satisfies loop boundary adequacy and branch testing:

Solution Preview :

Prepared by a verified Expert
Software Engineering: Generate minimal test cases that satisfies loop boundary
Reference No:- TGS01474369

Now Priced at $30 (50% Discount)

Recommended (97%)

Rated (4.9/5)