Jacob,
The module is doctest, if you look at the docs you will see examples of how to
use it.
I'm not sure if there is a way to run the doctests for a single function - the doctest functions
seem to be oriented toward testing entire modules.
To test a module selected by user input, you could do
Hi,
A little while back somebody suggested doctesting, I think it was. Well,
anyway, it was the testing that took testing material from the doc strings
of functions in the format of an interpreter and the desired result (example
below). Could anyone help by pointing me to structured documentat