Hacker News new | ask | show | jobs
by Spasnof 706 days ago
Yes there are certain libraries that can handle this. Essentially asserting that functions documented are valid / return the proper results.

See https://docs.python.org/3/library/doctest.html#module-doctes... as an example.