Free practice · boolean · easy
Practice
Write expected results first
A test is easier to trust when its expected result is defined independently before observing the program's result.
Test evidence matrix
Coverage quality comes from distinct contract cases
- Normal
- 1+ Representative allowed behavior
- Boundary
- 2+ Exact and neighboring values
- Invalid
- 1+ Defined rejection behavior
- Regression
- Every fix Previously failing evidence
Planned cases with independent expectations100%
A planned set includes normal behavior, both sides of important boundaries, invalid states, and the exact cases that exposed earlier defects.