Understand the idea
Boundary tests check values close to where behavior changes. They help expose mistakes such as using > instead of ≥.
WORKED EXAMPLE
A fictional score rule accepts whole numbers from 0 to 10 and passes scores ≥ 6. Test 5, 6 and 7 after validating the range.
Watch it step by step
Step 1 of 4Rule
The pass threshold is score ≥ 6.
Choose Play to advance steps automatically.
Read or choose any step
- Rule
The pass threshold is score ≥ 6.
- Below
Score 5 fails.
- Boundary
Score 6 passes.
- Above
Score 7 passes.
TRY BEFORE CHECKING
Exercises with feedback
MAKE SOMETHING YOU CAN EXPLAIN
Your practical challenge
Write expected outputs for -1, 0, 5, 6, 7, 10 and 11. Separate invalid from valid-but-failing input.
These ticks are your self-review. They do not automatically assess project quality. Ask an adult or partner to review what you can show.
Use the skill in a new situation
Find a test that distinguishes > from ≥.