News for hackers. Stuff that matters.
Re:Unit Tests as Documentation by TeMPOraL on Thursday October 17, 2024 @06:29PM (#41874460)
IDK, they sound like they overflow the "maximum code" counter and land up straight in the literate programming land. I wonder how far you could go writing your whole program as doctests spliced between commentary.
Re:Unit Tests as Documentation by phi-go on Friday October 18, 2024 @09:04AM (#41879065)
Doctests are tests they are not part of a release build. Also I don't believe there is a supported way to access code in doctests from the outside.

So (sadly?) no literate programming