Middle
Boundary value task: the field accepts integers from -10 inclusive to 100 inclusive. What test cases would you write?
sobes.tech AI
Answer from AI
For a field accepting integers from -10 to 100 inclusive, the main boundary test cases would be:
- Checking the minimum value: -10 (should pass)
- Checking a value just below the minimum: -11 (should be rejected)
- Checking a value just above the minimum: -9 (should pass)
- Checking the maximum value: 100 (should pass)
- Checking a value just below the maximum: 99 (should pass)
- Checking a value just above the maximum: 101 (should be rejected)
- Checking typical values within the range, such as 0, 50
It is also useful to test non-integer values and empty/incorrect data if relevant.