3 ms·
I'm not saying to not write any micro-tests at all, just that most of them are not needed - use your judgement of course. Don't bother writing tests for things
by ufmace 6y ago
I'm not saying to not write any micro-tests at all, just that most of them are not needed - use your judgement of course. Don't bother writing tests for things that your type system and compiler already protect you from.
I do find that off-by-one errors are much harder to make, in both static and dynamic languages, when you use the collection looping and manipulation constructs that almost every language has now, instead of C-style triple-statement for loops.