4 ms·
> If you don't test it, you are just an idiot who has no proof that the code does what it claims to do. Does having tests make it any different? You would need
by methyl 7y ago
> If you don't test it, you are just an idiot who has no proof that the code does what it claims to do.
Does having tests make it any different? You would need to test those tests to make sure they are testing the right thing after all (ad infinity).
- ptx 7y agoUntested tests are still a lot more useful than no tests, just like how an untested program (while probably worse than a tested program) is still usually better than no program at all. Also, tests are actually subject to very basic testing in the red-green-refactor TDD cycle: they start out failing so you know that they actually test something when they start passing.