INNER CODE UNIT · Rust
test_args
matiaskorhonen/paper-age · src/cli.rs:64
fn test_args() {
let args = Args::parse_from([
"paper-age",
"-f",
"-g",
"--title",
"Hello",
"--notes-label",
"Notes:",
"--skip-notes-line",
"--output",
"test.pdf",
"input.txt",
]);
assert!(args.force);
assert!(args.grid);
assert_eq!(args.title, "Hello");
assert_eq!(args.notes_label, "Notes:");