nus-cs2103-AY2021S1 / forum

20 stars 2 forks source link

1819 Mock Part 2 Q3 #501

Closed Wincenttjoi closed 3 years ago

Wincenttjoi commented 3 years ago

image

For the 7th test case, is it a must to choose a valid non-boundary value? I also have 7 test cases but the last one I choose an invalid value (negative number) which wasn't used before. Will that be acceptable?

GeNiaaz commented 3 years ago

Since the first 6 test cases already cover the important test cases, it does not exactly matter what u put in case 7. And by putting a negative number you are in fact using a non-boundary value anyway.

damithc commented 3 years ago

I think the reason test case 7 uses a valid value is because we have tested only two values from the 1000..6999 partition (i.e., in positive test cases) and they are both boundary values. So, at this point, we don't have evidence that the code works for non-boundary values of that partition. Still, it is not the only answer. Your suggestion would have been accepted as well.