Macro doc_comment::doctest
source · [−]macro_rules! doctest {
($x:expr) => { ... };
($x:expr, $y:ident) => { ... };
}
Expand description
This macro provides a simpler way to test an outer markdown file.
Example
extern crate doc_comment;
// The two next lines are doing exactly the same thing:
doc_comment::doc_comment!(include_str!("../README.md"));
doc_comment::doctest!("../README.md");
// If you want to have a name for your tests:
doc_comment::doctest!("../README.md", another);