Friday, 18 December 2015

Given the following fragment of code, how many tests are required for 100% decision coverage?

if width > length
 thenbiggest_dimension = width
 if height > width
 thenbiggest_dimension = height
 end_if
 elsebiggest_dimension = length
 if height > length
 thenbiggest_dimension = height
 end_if
 end_if
 4

No comments:

Post a Comment