DEV Community

Discussion on: Can someone experienced in writing tests expand on the mental models of unit tests?

 
pentacular profile image
pentacular

For correctness you want to test the transitions between valid and invalid, yes.

There are generally an infinite number of valid and invalid values, but usually a finite number of discontinuities in the domain of a function.