4 ms·
In both cases, you shouldn't be documenting and testing the internals if your functions, but the code contract, i.e. that it does what you have agreed with othe
by einhverfr 13y ago
In both cases, you shouldn't be documenting and testing the internals if your functions, but the code contract, i.e. that it does what you have agreed with other developers that the function will do.
The question is not whether to test or whether to document, but what to test and what to document.