• Two guidelines:
– If the input data values to a system can be specified by a range of
values then one valid and two invalid equivalence classes need to
be defined.
• Example: For a software that computes the square root of a n
input integer that can assume values in the range of 0 and
5000. Determine the equivalence class test suite.
Answer: {-5,500,6000}
– If the input data assumes values from a set of discrete members
then one equivalence class for a valid input values and another for
input values needs to be defined.
1
2 Cyclomatic
3 4 complexity =
7-6+2 = 3.
5
6