clap/tests/builder/unicode.rs
Ed Page 045bf99ae0 test: Consolidate builder tests
This is prep for moving the derive tests.  Besides organizing the test
folder for each API, this should reduce link time at the cost of
re-compiling more when a test changes.
2021-11-30 10:07:05 -06:00

18 lines
480 B
Rust

#![cfg(feature = "unicode")]
#[test]
fn possible_values_ignore_case() {
let m = clap::App::new("pv")
.arg(
clap::Arg::new("option")
.short('o')
.long("--option")
.takes_value(true)
.possible_value("ä")
.ignore_case(true),
)
.try_get_matches_from(vec!["pv", "--option", "Ä"]);
assert!(m.is_ok());
assert!(m.unwrap().value_of("option").is_some());
}