Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/walkdir.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2019-05-01 17:52:20 +0300
committerAndrew Gallant <jamslam@gmail.com>2019-05-01 17:52:20 +0300
commit4c4fdb2abd5f86be2f35a4f61df3f1a98e580867 (patch)
tree432d79e859e53b4cb7939c85408af034f5891307
parent830fc25acfd96197c79cc466f5a711749c90eb2b (diff)
test: check examples in README
PR #119
-rw-r--r--Cargo.toml1
-rw-r--r--src/lib.rs6
2 files changed, 7 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index c1b81e5..89e1bd0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,3 +32,4 @@ quickcheck = { version = "0.7", default-features = false }
rand = "0.5"
serde = "1"
serde_derive = "1"
+doc-comment = "0.3"
diff --git a/src/lib.rs b/src/lib.rs
index c433d85..e5002ce 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;