3 ms·
Good tests aren't necessarily good examples, but good examples are good tests. In other words, good examples are a subset of good tests. It's also good practi
by bryanlarsen 14y ago
Good tests aren't necessarily good examples, but good examples are good tests. In other words, good examples are a subset of good tests.
It's also good practice to test your documentation. Far too many examples in documentation have subtle errors that could easily be caught by regularly executing them.