3 ms·
Python and Rust go the “documentation test” route as well. Go goes the opposite direction with “testable examples” that are written alongside test code and add
by sambal 7y ago
Python and Rust go the “documentation test” route as well.
Go goes the opposite direction with “testable examples” that are written alongside test code and added to generated documentation.
https://docs.python.org/2/library/doctest.html https://docs.python.org/2/library/doctest.html
https://doc.rust-lang.org/rustdoc/documentation-tests.html https://doc.rust-lang.org/rustdoc/documentation-tests.html
https://golang.org/pkg/testing/#hdr-Examples https://golang.org/pkg/testing/#hdr-Examples