From 1fddb8f202ad68a3ec4b52554c400a442a2a0021 Mon Sep 17 00:00:00 2001 From: CreepySkeleton Date: Sun, 2 Aug 2020 19:52:12 +0300 Subject: [PATCH] Fix buggy tests --- tests/arg_aliases.rs | 2 +- tests/arg_aliases_short.rs | 2 +- tests/fixtures/app.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/arg_aliases.rs b/tests/arg_aliases.rs index ef68252850b..46e179ba45f 100644 --- a/tests/arg_aliases.rs +++ b/tests/arg_aliases.rs @@ -167,7 +167,7 @@ fn invisible_arg_aliases_help_output() { .takes_value(true) .aliases(&["invisible", "als1", "more"]), ) - .arg(Arg::from("-f, --flag").aliases(&["invisible", "flg1", "anyway"])), + .arg(Arg::from("-f, --flag").aliases(&["unseeable", "flg1", "anyway"])), ); assert!(utils::compare_output( app, diff --git a/tests/arg_aliases_short.rs b/tests/arg_aliases_short.rs index 65d0f5649bb..865dc8bcdfc 100644 --- a/tests/arg_aliases_short.rs +++ b/tests/arg_aliases_short.rs @@ -163,7 +163,7 @@ fn invisible_short_arg_aliases_help_output() { .takes_value(true) .short_aliases(&['a', 'b', 'c']), ) - .arg(Arg::from("-f, --flag").short_aliases(&['a', 'b', 'c'])), + .arg(Arg::from("-f, --flag").short_aliases(&['x', 'y', 'z'])), ); assert!(utils::compare_output( app, diff --git a/tests/fixtures/app.yaml b/tests/fixtures/app.yaml index c4cfd28569a..03dcf4d382f 100644 --- a/tests/fixtures/app.yaml +++ b/tests/fixtures/app.yaml @@ -92,7 +92,7 @@ args: - multshortaliases: long: multshortaliases about: Tests multiple short aliases - short_aliases: [a, b, c] + short_aliases: [b, c] - minvals2: long: minvals2 multiple: true