News for hackers. Stuff that matters.
Re:Docs as code (2017) by Spasnof on Tuesday July 09, 2024 @12:09PM (#40917739)
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.

There are no comments on this comment yet.