[][src]Macro doc_comment::doctest

macro_rules! doctest {
    ($x:expr) => { ... };
    ($x:expr, $y:ident) => { ... };
}

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);