Review and test generated changes

A timer accepts whole minutes from 1 through 30. A generated check uses only 10. Name values that test both ends of the allowed range.

Examples

Example 1

Input
0, 1, 30, 31
Expected output
Reject, accept, accept, reject

Hints and solution

Hint 1

Use the nearest rejected value beside each endpoint.

Reveal worked answer

Zero and 31 should be rejected. One and 30 should be accepted. These cases reveal whether either endpoint is excluded or whether the range is too generous.

Back to the lesson