mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 23:02:31 +00:00
Remove pointless test
Come on, who on earth needs to test exact content of debug output?!
This commit is contained in:
parent
f1479974e0
commit
12e8541678
1 changed files with 0 additions and 46 deletions
|
@ -498,52 +498,6 @@ mod test {
|
|||
assert_eq!(g.conflicts, confs);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_debug() {
|
||||
let g = ArgGroup::new("test")
|
||||
.arg("a1")
|
||||
.arg("a4")
|
||||
.args(&["a2", "a3"])
|
||||
.required(true)
|
||||
.conflicts_with("c1")
|
||||
.conflicts_with_all(&["c2", "c3"])
|
||||
.conflicts_with("c4")
|
||||
.requires("r1")
|
||||
.requires_all(&["r2", "r3"])
|
||||
.requires("r4");
|
||||
|
||||
let args = vec![
|
||||
Id::from("a1"),
|
||||
Id::from("a4"),
|
||||
Id::from("a2"),
|
||||
Id::from("a3"),
|
||||
];
|
||||
let reqs = vec![
|
||||
Id::from("r1"),
|
||||
Id::from("r2"),
|
||||
Id::from("r3"),
|
||||
Id::from("r4"),
|
||||
];
|
||||
let confs = vec![
|
||||
Id::from("c1"),
|
||||
Id::from("c2"),
|
||||
Id::from("c3"),
|
||||
Id::from("c4"),
|
||||
];
|
||||
|
||||
let debug_str = format!(
|
||||
"{{\n\
|
||||
\tname: \"test\",\n\
|
||||
\targs: {:?},\n\
|
||||
\trequired: {:?},\n\
|
||||
\trequires: {:?},\n\
|
||||
\tconflicts: {:?},\n\
|
||||
}}",
|
||||
args, true, reqs, confs
|
||||
);
|
||||
assert_eq!(&*format!("{:?}", g), &*debug_str);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_from() {
|
||||
let g = ArgGroup::new("test")
|
||||
|
|
Loading…
Reference in a new issue