Week 11 (Ans Only)
Week 11 (Ans Only)
Task 1.
The following test cases are created:
int[] sample1 = {1, 2, 3, 4, 5, 6};
int[] sample2 = new int[] {}; // initialise an empty array with size 0
int[] sample3 = {-1, 0};
int[] sample4 = {-1, 0 ,1};
int[] sampel5 = {1};
A test suite meeting the statement adequacy includes: sample1, sample3 (or sample4)
A test suite meeting the loop boundary adequacy includes: sample2, sample3 (or sample4), sample5
A test suite meeting the branch coverage criterion includes: sample1, sample3 (or sample4)
Task 2.
Acceptable answers can vary. A good answer should describe parameter char-
acteristics, not concrete values. Note, for example, that in our sample solution, times
of the outbound departure are classified by their relation to the inbound arrival, rather
than being selected from a set of concrete times. The distinction between parameter
values and parameter characteristics may be slight when parameters are orthogonal or
nearly so, but becomes important when the specification describes relations among
parameters.
This parameter refers to the domestic and international connect time record corresponding
to the transfer airport.
Domestic connect time (DCT)
not found [error]
invalid [error]
valid