Everybody knows testing is important, but the software industry is overrun by terrible testing practices. Because of this, there has often been a negative sentiment against testing in the Handmade community. This fishbowl explores the kinds of testing the community has found most effective, the costs of testing, and the actual purpose behind testing techniques.
it('should take less than 1000 years to run this code')
it('should take less than 1000 years to run this code')
# shouldn't crash
.NDEBUG
, right?), can only check what's in scope at a specific point in time.
Before I understood tests I often tried to periodically go into a mode where the program would perform sanity checks on some internal data structure.