Hacker News new | ask | show | jobs
by chris_engel 1815 days ago
So... how do I know the other branch was correct without tests?
2 comments

You don't. Not without further investigation. You need to figure out why they are different.

Sometimes this technique catches bugs on prod that are unknowingly fixed with refactoring.

The test is done so you verify that your new code has not any side effect that had changed previous behavior.

How do you know that your tests are correct? The problem is equivalent.