use super::*;
#[test]
fn _0001() {
eq_text(
r#"
Usage: clars
"#,
Clar::new(APP).resolve(EMPTY_INPUT).unwrap().get_help(),
);
}
#[test]
fn _0002() {
eq_text(
r#"
Command line arguments resolver
Usage: clars
"#,
Clar::new(APP)
.description("Command line arguments resolver")
.resolve(EMPTY_INPUT)
.unwrap()
.get_help(),
);
}
#[test]
fn _0003() {
assert_eq!("unexpected option '-h' found", Clar::new(APP).resolve(["-h"]).unwrap_err().to_string());
}
#[test]
fn _0004() {
assert_eq!("unexpected option '--help' found", Clar::new(APP).resolve(["--help"]).unwrap_err().to_string());
}
#[test]
fn _0005() {
assert_eq!(
"unexpected argument 'file.txt' found",
Clar::new(APP).resolve(["file.txt"]).unwrap_err().to_string()
);
}
#[test]
fn _0006() {
assert_eq!(
"unexpected option terminator '--' found",
Clar::new(APP).resolve(["--"]).unwrap_err().to_string()
);
}