From 784159c44cc72570bbc7f154cefebcc36f8345c4 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 30 Apr 2019 21:46:49 +0200 Subject: [PATCH] Add doc-comment to test README examples --- Cargo.toml | 3 +++ src/lib.rs | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 619b207..617706f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,3 +21,6 @@ exclude = [ "target/*", "Cargo.lock" ] default = [] no_std = [] bench = [] + +[dev-dependencies] +doc-comment = "0.3" diff --git a/src/lib.rs b/src/lib.rs index 1ee35c8..7d0bab5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,6 +56,13 @@ extern crate std; #[cfg(feature = "bench")] extern crate test; +#[cfg(test)] +#[macro_use] +extern crate doc_comment; + +#[cfg(test)] +doctest!("../README.md"); + use tables::charwidth as cw; pub use tables::UNICODE_VERSION; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy