chore: changes build command features for Windows builds in testing

This commit is contained in:
Kevin K 2015-12-18 02:25:02 -05:00
parent 2b6511fe65
commit b9ff14bfff
3 changed files with 4 additions and 5 deletions

View file

@ -9,5 +9,4 @@ build: false
test_script:
- cargo build --features yaml
- cargo test --features yaml
- cargo build --no-default-features
- cargo test --no-default-features --features yaml

View file

@ -497,10 +497,11 @@ pub enum ClapErrorType {
UnexpectedMultipleUsage,
/// Error occurs when argument contains invalid unicode characters
///
/// **Note:** Non-Windows OS only
///
/// # Examples
///
/// ```no_run
/// ```ignore
/// # use clap::{App, Arg};
/// # use std::os::unix::ffi::OsStringExt;
/// # use std::ffi::OsString;

View file

@ -72,7 +72,7 @@ pub enum DidYouMeanMessageStyle {
EnumValue,
}
#[cfg(test)]
#[cfg(all(test, features = "suggestions"))]
mod test {
use super::*;
@ -81,6 +81,5 @@ mod test {
let p_vals = ["test", "possible", "values"];
assert_eq!(did_you_mean("tst", p_vals.iter()), Some("test"));
assert!(did_you_mean("hahaahahah", p_vals.iter()).is_none());
}
}