tests: fixes failing tests from new API additions

This commit is contained in:
Kevin K 2018-03-21 19:41:58 -04:00
parent 2264b255d3
commit 8f1c0cfbbd
No known key found for this signature in database
GPG key ID: 17218E4B3692F01A
2 changed files with 6 additions and 5 deletions

View file

@ -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]

View file

@ -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"),
]) ])