use super::*;
#[test]
fn _0001() {
let matches = Clar::new(APP)
.commands([ClarCommand::new("a").options_commands([ClarOption::short("color", 'c')], [ClarCommand::new("b1"), ClarCommand::new("b2")])])
.resolve(EMPTY_INPUT)
.unwrap();
assert!(!matches.is_present("a"));
assert!(!matches.is_present(["a", "color"]));
assert!(!matches.is_present(["a", "b1"]));
assert!(!matches.is_present(["a", "b2"]));
}
#[test]
fn _0002() {
let matches = Clar::new(APP)
.commands([ClarCommand::new("a").options_commands([ClarOption::short("color", 'c')], [ClarCommand::new("b1"), ClarCommand::new("b2")])])
.resolve(["a", "-c", "b1"])
.unwrap();
assert!(!matches.is_present("a"));
assert!(matches.is_present(["a", "color"]));
assert!(matches.is_present(["a", "b1"]));
assert!(!matches.is_present(["a", "b2"]));
}