Middle+
Boundary value problem: age field from 18 to 25 inclusive. Minimum number of checks?
sobes.tech AI
Answer from AI
To test the age field with a restriction from 18 to 25 inclusive, the minimum number of tests can be reduced to three:
- Check the value at the lower boundary (18) — it should pass.
- Check the value at the upper boundary (25) — it should pass.
- Check a value outside the range (for example, 17 or 26) — it should not pass.
Thus, we test the boundary values and at least one value outside the range to ensure that validation works correctly.