3 ms·
I used to work on Sage, a math super package, which used 'doc tests' - documentation strings contained executable examples with expected outputs, and the test s
by sdenton4 3y ago
I used to work on Sage, a math super package, which used 'doc tests' - documentation strings contained executable examples with expected outputs, and the test systems would run them all and check that they worked.
- JimDabell 3y agoPython has this built in: https://docs.python.org/3/library/doctest.html https://docs.python.org/3/library/doctest.html