Test rules at their boundaries
Interpret AND, OR and NOT and test both permitted limits and values just outside them.
In this lesson
- It starts with a question. Does ticket AND seat available accept someone who has a ticket but no seat?
- The idea you will find. Name the rule, then test boundaries as well as ordinary cases. — AND needs every condition; OR needs at least one; NOT reverses a true/false value. For a whole-number seat count from 0 to 10 inclusive, test 0 and 10 as allowed boundaries, and −1 and 11 as rejected neighbours. Also test a normal middle value and invalid non-number input.
- How you learn it. By doing: sorting.
- Length. 8 short steps. Progress saves on this phone.
Part of Solve everyday computing problems
Handle event records, find an item, organise work and test a rule using local, interactive models.