Comment Re:That's why we have automated tests (Score 1) 396
A good practice is to reverse assertions while you're writing a test. If x is supposed to be false then assert that it's true. The test should fail, but sometimes it doesn't and you realize that your test has a bug or that you've already found a bug in the production code.