Y
Hacker News
new
|
ask
|
show
|
jobs
by
sdenton4
976 days 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.
1 comments
JimDabell
976 days ago
Python has this built in:
https://docs.python.org/3/library/doctest.html
link
https://docs.python.org/3/library/doctest.html