Skip to content

Commit

Permalink
Fix buggy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CreepySkeleton committed Aug 2, 2020
1 parent ff2ef2c commit 1fddb8f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/arg_aliases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/arg_aliases_short.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fddb8f

Please sign in to comment.