3 ms·
I see unit tests as executable documentation. So it's nice when code you're getting familiar with has good tests. That said, I don't write them myself, except w
by dmos62 6y ago
I see unit tests as executable documentation. So it's nice when code you're getting familiar with has good tests. That said, I don't write them myself, except when the code is complicated and difficult to predict, but then I'm more likely to refactor it.
- disgruntledphd2 6y agoThe author agrees with you, in that he makes the same recommendation around testing the functionality rather than the functions.