5 questions0m 0s
Learn the skill
Requirement: accept whole-number levels from 1 through 5, inclusive. Valid types are integers only. Build tests for each endpoint, just outside each endpoint, an ordinary interior value and a wrong type. A passing sample is evidence, not a universal proof.
Worked example
For integer inputs 0, 1, 3, 5 and 6, expected outcomes are reject, accept, accept, accept and reject. The text "3" is rejected under this contract even though it contains a digit.