3.11 An application takes two inputs x and y where x ≤ y and –5 ≤ y ≤ 4. (a) Partition the input domain using uni-dimensional and multidimensional partitioning. (b) Derive test sets based on the partitions created in (a).
Hints that were given to me:
Hints: x and y are two inputs. Where x ≤ y and -5 ≤ y ≤ 4
From this we assume the input x is -[infinity] ≤ x ≤ 4
Unidimensional:
The following are the six equivalence classes:
E1: x < -[infinity]
E2: ?
E3: x > 4
E4: y < -5
E5: -5 ≤ y ≤ 4
E6: ?
Multidimensional
The following are the nine equivalence classes:
E1: x < -[infinity], y < -5
E2: x< -[infinity], ?
E3: x -[infinity], y >4
E4: ?, y < -5
E5: -[infinity] ≤x ≤ 4, ?
E6: -[infinity] ≤ x ≤ 4, y > 4
E7: ?, y < -5
b) Test sets based on the partitions created in (a) Unidimensional partitioning based
eg.
T1 = {
t1: ([ ]),
t2: (4),
t3: (5),
t4: (-6),
t5: (-4),
t6: (5)
Here, the tests, t3 and t6 are one of the equivalence class for inputs x and y. These
contain the same set of values and discard the test t6. The revised test set is
Multidimensional partitioning based test sets are: