Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


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.


Sure, but that is an incorrect test for other developers to worry about it failing.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: