4 ms·
"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
by 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.