Test boundaries and edge cases
A locker room allows a group size from 1 through 8 inclusive. Decide which boundary values are accepted.
Examples
Example 1
Input
0, 1, 8, 9
Expected output
Reject, accept, accept, reject
Hints and solution
Hint 1
Check both the lower and upper boundaries.
Reveal worked answer
One and eight are accepted because both boundaries are inclusive. Zero falls below the lower limit, and nine exceeds the upper limit.