mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 23:37:32 +00:00
Fix buggy tests
This commit is contained in:
parent
32414fbdff
commit
6169bb8e79
3 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
2
tests/fixtures/app.yaml
vendored
2
tests/fixtures/app.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue