Our tests provide us an outline for writing our functions, but they can also help us defend against situations we didn’t expect. We’ll write tests that demonstrate the breaking conditions of our functions.
- An edge case is a radical situation your function might end up in, but it isn’t how your function would normally work
- Edge cases occur at an extreme (maximum or minimum) operating parameter
- Predicting edge cases can be challenging
- Spend a little time thinking about the edge cases that are most likely to come up
You need to sign up for Treehouse in order to download course files.Sign up