Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
contentfairplay
· 11y ago · 0 comments
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?
Comments
[–]
brudgers
11y ago
Then 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
OP
11y ago
Sure, but that is an incorrect test for other developers to worry about it failing.