Re:TDD did not live up to expectations
by bluGill on Friday June 30, 2017 @10:40AM
(#14671033)
I sometimes write tests that I know will pass. A common example is when the previous version of an algorithm had a bug in some special case. My new algorithm written from scratch doesn't have that special case at all so there is no test for it. However because the last version had that bug there is a lot of fear so I will write a test that it works even though it is inherent in my new algorithm that it works and at no point in the TDD cycle is that test the correct one to write.
[ Parent
| on HN ]
There are no comments on this comment yet.