tests: run or compile some currently ignored doc-tests

This commit is contained in:
tormol 2016-10-05 11:32:57 +02:00
parent e151bfc2e8
commit 330a376a46
2 changed files with 4 additions and 3 deletions

View file

@ -1051,7 +1051,7 @@ impl<'a, 'b> App<'a, 'b> {
/// First, it helps if we separate out our `App` definition into a seperate file. Whether you
/// do this as a function, or bare App definition is a matter of personal preference.
///
/// ```ignore
/// ```
/// // src/cli.rs
///
/// use clap::{App, Arg, SubCommand};

View file

@ -149,7 +149,8 @@
//!
//! The following combines the previous two examples by using the less verbose `from_usage` methods and the performance of the Builder Pattern.
//!
//! ```ignore
#![cfg_attr(not(feature="unstable"), doc=" ```ignore")]
#![cfg_attr( feature="unstable" , doc=" ```no_run")]
//! // (Full example with detailed comments in examples/01c_quick_example.rs)
//! // Must be compiled with `--features unstable`
//! //
@ -286,7 +287,7 @@
//!
//! * Add the following to your `src/main.rs`
//!
//! ```ignore
//! ```no_run
//! extern crate clap;
//! use clap::App;
//!