This happens to me, that I test for the wrong thing. But it happened to me a lot more often when I started testing but before adopting TDD.

It’s not enough for the test to fail, it should fail for the right reason. You can always write a test that fails depending on a pseudorandom number. That does nothing to discredit TDD.

is a composer and photographer from Detroit, Michigan. He has been working on a Java program to display certain mathematical diagrams.