more command line tests, more version info

This commit is contained in:
Lynne Megido 2022-01-01 13:04:07 +10:00
parent 82232a3c05
commit 9aef5d314c
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90

View file

@ -357,7 +357,7 @@ fn check_version_output() {
let output = cmd.arg("-V").ok().unwrap().stdout;
let output = String::from_utf8(output).unwrap();
assert!(
Regex::new(r#"fif v(\d\.){2}\d"#).unwrap().is_match(&output.trim()),
Regex::new(r#"fif v(\d\.){2}\d"#).unwrap().is_match(output.trim()),
"\"{}\" does not match the expected `-v` format!",
output
);
@ -370,7 +370,7 @@ fn check_version_output() {
assert!(
Regex::new(r#"fif v(\d\.){2}\d \(.+, .+ backend, (unknown commit|commit #[\da-f]{7})\)"#)
.unwrap()
.is_match(&output.trim()),
.is_match(output.trim()),
"\"{}\" does not match the expected `--version` format!",
output.trim()
);