3 ms·
What if you wrote a test that passes at the time of writing because of how something is implemented at that time but its not actually an invariant?
by contentfairplay 11y ago
What if you wrote a test that passes at the time of writing because of how something is implemented at that time but its not actually an invariant?
- brudgers 11y agoThen you will learn that later when the test fails. That is better because the reason for writing the test was your belief that it was invariant. Without the test you are more likely to continue holding the mistaken belief.
- contentfairplay 11y agoSure, but that is an incorrect test for other developers to worry about it failing.