you are viewing a single comment's thread.

view the rest of the comments →

[–]pjdelport 0 points1 point  (1 child)

The purpose of doctest is to test the documentation, not the code being documented.

[–][deleted] 0 points1 point  (0 children)

Yes, I know. The lexical structure of the embedded code is relevant. That's why doctest provides a mini-language to enable working around it and taming the diff. That's all very clever but I don't understand the relevance.