Level 4 · Lesson 8 of 12
Automated software testing
A test supplies known input, runs a behaviour and compares observed output with a specified result. Include boundary and failure cases. A test should fail when its rule is deliberately broken in a local copy.
Field assignment
Write three tests for a GHS delivery fee: below the free threshold, exactly at it, and invalid input.
Private to this browser profile. Use practice data only; notes are not encrypted. Each note needs at least four words and 20 characters.