crazy idea i had; feel free to suggest radical improvements :)
Suggestion: make it into a quine.
Rust can test examples in markdown files by the way, though it’s deactivated as a standard behavior. (At least, in cargo)
For running tests manually, use:
$ rustdoc --test README.md
It uses the same machinery as the docstring tests. (which are activated by default)
Alternatively use https://github.com/brson/rust-skeptic
Also, how is this “crazy”? It’s perfectly well-aligned with the idea of tested documentation.
The first commit roughly sums up my opinions on this:
first pass at this insanity
:)
Suggestion: make it into a quine.
Rust can test examples in markdown files by the way, though it’s deactivated as a standard behavior. (At least, in cargo)
For running tests manually, use:
It uses the same machinery as the docstring tests. (which are activated by default)
Alternatively use https://github.com/brson/rust-skeptic
Also, how is this “crazy”? It’s perfectly well-aligned with the idea of tested documentation.
The first commit roughly sums up my opinions on this:
:)