Skip to content

Glossary: Refactoring and Clean Code

Edge case

Also written: edge cases, edges

An input at the boundary of a rule, such as exactly $300 or 20 bags, where bugs like `>` versus `>=` hide. Tests should pin the values just below and at each limit.

Where the book teaches it

Related terms

Characterization testUnit test