Writing tests may not reduce the number of bugs, but it will make them easier to fix

Writing tests for your code may not reduce the number of bugs, but it will make fixing the bugs you inevitably find easier.