mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 14:54:15 +00:00
fix: Flag Subcommands tests behind debug_asserts
Tests that check conflicts are behind the `debug_assertions` feature
This commit is contained in:
parent
32db427706
commit
d785ebc14e
1 changed files with 2 additions and 0 deletions
|
@ -241,6 +241,7 @@ fn flag_subcommand_multiple() {
|
|||
assert!(result_matches.is_present("print"));
|
||||
}
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
#[test]
|
||||
#[should_panic = "Short option names must be unique for each argument, but \'-f\' is used by both an App named \'some\' and an Arg named \'test\'"]
|
||||
fn flag_subcommand_short_conflict_with_arg() {
|
||||
|
@ -250,6 +251,7 @@ fn flag_subcommand_short_conflict_with_arg() {
|
|||
.get_matches_from(vec!["myprog", "-f"]);
|
||||
}
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
#[test]
|
||||
#[should_panic = "Long option names must be unique for each argument, but \'--flag\' is used by both an App named \'some\' and an Arg named \'flag\'"]
|
||||
fn flag_subcommand_long_conflict_with_arg() {
|
||||
|
|
Loading…
Reference in a new issue