INNER CODE UNIT · Rust
test_defaults
matiaskorhonen/paper-age · src/cli.rs:88
fn test_defaults() {
let args = Args::parse_from(["paper-age"]);
assert_eq!(args.title, "PaperAge");
assert_eq!(args.notes_label, "Passphrase:");
assert!(!args.skip_notes_line);
assert_eq!(args.output.to_str().unwrap(), "out.pdf");
assert_eq!(args.input, None);
assert!(!args.force);
}
#[test]
fn test_fonts_license() {
let args = Args::parse_from(["paper-age", "--fonts-license"]);
assert!(args.fonts_license);
}
#[test]
fn test_fonts_license_conflict() -> Result<(), Box<dyn std::error::Error>> {