7 ms·
Well, if you have total understanding you probably don't need tests, but most of us (Knuth excepted, apparently) don't get to that level. So, the middle ground
by michael_dorfman 17y ago
Well, if you have total understanding you probably don't need tests, but most of us (Knuth excepted, apparently) don't get to that level.
So, the middle ground is: understand as much as you can, test as much as you have to.
- eru 17y ago"Beware of bugs in the above code; I have only proved it correct, not tried it." - Donald Knuth > So, the middle ground is: understand as much as you can, test as much as you have to. Test even what you understand. QuickCheck (http://www.cs.chalmers.se/~rjmh/QuickCheck/ http://www.cs.chalmers.se/~rjmh/QuickCheck/) and friends like SmallCheck and Lazy SmallCheck let you turn specs into tests easily.