#![deny(clippy::all)]
use std::process::{Command, Output};
fn run_license_command() -> Output {
Command::new("cargo")
.args(["run", "--", "--license"])
.output()
.expect("Running test failed")
}
#[test]
fn cli_license_starts_with() {
let res = run_license_command();
let begin_text = "sic image tools license:";
assert!(res.status.success());
assert!(std::str::from_utf8(&res.stdout)
.unwrap()
.starts_with(begin_text));
}