mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
tests: fixes failing tests from new API additions
This commit is contained in:
parent
2264b255d3
commit
8f1c0cfbbd
2 changed files with 6 additions and 5 deletions
|
@ -498,11 +498,12 @@ fn leading_double_hyphen_trailingvararg() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn unset_setting() {
|
fn unset_setting() {
|
||||||
let m = App::new("unset_setting");
|
let m = App::new("unset_setting")
|
||||||
assert!(m.is_set(AppSettings::AllowInvalidUtf8));
|
.setting(AppSettings::AllArgsOverrideSelf);
|
||||||
|
assert!(m.is_set(AppSettings::AllArgsOverrideSelf));
|
||||||
|
|
||||||
let m = m.unset_setting(AppSettings::AllowInvalidUtf8);
|
let m = m.unset_setting(AppSettings::AllArgsOverrideSelf);
|
||||||
assert!(!m.is_set(AppSettings::AllowInvalidUtf8));
|
assert!(!m.is_set(AppSettings::AllArgsOverrideSelf));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -304,7 +304,7 @@ fn create_app() {
|
||||||
#[test]
|
#[test]
|
||||||
fn add_multiple_arg() {
|
fn add_multiple_arg() {
|
||||||
let _ = App::new("test")
|
let _ = App::new("test")
|
||||||
.args(&mut [
|
.args(&[
|
||||||
Arg::with_name("test").short("s"),
|
Arg::with_name("test").short("s"),
|
||||||
Arg::with_name("test2").short("l"),
|
Arg::with_name("test2").short("l"),
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in a new issue