Glossary: Refactoring and Clean Code
Unit test
Also written: unit tests
A small, fast test that checks one function directly, such as the discount tiers or the Portland $300 delivery limit. Unit tests pin down individual rules and can sit beside a broader golden test of the whole output.