From 43c437747c91d17bfc866f0a03a107e8430e6c70 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 1 May 2019 16:53:01 +0200 Subject: test: check examples in README PR #146 --- src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 0274d74..2ce9603 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -67,6 +67,13 @@ This crate can also be used without the standard library. #[cfg(feature = "std")] extern crate core; +#[cfg(test)] +#[macro_use] +extern crate doc_comment; + +#[cfg(test)] +doctest!("../README.md"); + use core::fmt::Debug; use core::hash::Hash; use core::ptr::copy_nonoverlapping; -- cgit v1.2.3