Hacker News new | ask | show | jobs
by JimDabell 1142 days ago
Python has this built in:

https://docs.python.org/3/library/doctest.html