by AltonWells on 9/4/21, 7:00 PM with 2 comments
by webmaven on 9/5/21, 4:48 AM
However, a lot of commentary goes into tests rather than the code, and there I prefer to use doctests, a literate style that interleaves prose and code. In general, it follows this pattern: tell them what you're going to do (ie. prose), do it (code), explain what just happened (prose), and prove it did what you say (test code). Doctests are mostly integration/functional tests rather than unit tests.
by bitxbitxbitcoin on 9/4/21, 8:36 PM