mod terminator;
use super::*;
#[test]
fn _0001() {
let matches = Clar::new(APP)
.commands([ClarCommand::new("a").options_arguments([ClarOption::short("color", 'c')], [ClarArgument::new("file")])])
.resolve(EMPTY_INPUT)
.unwrap();
assert!(!matches.is_present("a"));
assert!(!matches.is_present(["a", "color"]));
assert!(!matches.is_present(["a", "file"]));
}
#[test]
fn _0002() {
let matches = Clar::new(APP)
.commands([ClarCommand::new("a").options_arguments([ClarOption::short("color", 'c')], [ClarArgument::new("file")])])
.resolve(["a", "-c", "file.txt"])
.unwrap();
assert!(matches.is_present("a"));
assert!(matches.is_present(["a", "color"]));
assert!(matches.is_present(["a", "file"]));
assert_eq!("file.txt", matches.get_first_value(["a", "file"]).unwrap());
}