β Software Engineering
Testing: check your own code
See it
A test is a tiny question
- Pick an input where you already know the right answer.
- Run your code and compare. Match = pass, mismatch = fail.
- A failing test is a gift: it tells you exactly where to look.
Input
max(3, 7)
Your code
runs
Expected
7 ?