diff options
author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2019-05-01 17:52:20 +0300 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2019-05-01 17:52:20 +0300 |
commit | 4c4fdb2abd5f86be2f35a4f61df3f1a98e580867 (patch) | |
tree | 432d79e859e53b4cb7939c85408af034f5891307 | |
parent | 830fc25acfd96197c79cc466f5a711749c90eb2b (diff) |
test: check examples in README
PR #119
-rw-r--r-- | Cargo.toml | 1 | ||||
-rw-r--r-- | src/lib.rs | 6 |
2 files changed, 7 insertions, 0 deletions
@@ -32,3 +32,4 @@ quickcheck = { version = "0.7", default-features = false } rand = "0.5" serde = "1" serde_derive = "1" +doc-comment = "0.3" @@ -114,6 +114,12 @@ extern crate same_file; extern crate winapi; #[cfg(windows)] extern crate winapi_util; +#[cfg(test)] +#[macro_use] +extern crate doc_comment; + +#[cfg(test)] +doctest!("../README.md"); use std::cmp::{Ordering, min}; use std::error; |