3 ms·
The idea is to provide a DRY way to ensure that the examples are correct. Few things are worse than a wrong example.
by pmontra 9y ago
The idea is to provide a DRY way to ensure that the examples are correct. Few things are worse than a wrong example.
- masklinn 9y agoThat's a fine idea and exactly why doctests exist but I am specifically replying to a comment talking about tests. Not testing examples, having actual tests included in the documentation. Which, again, experience taught me is a terrible idea.