more command line tests, more version info
This commit is contained in:
parent
82232a3c05
commit
9aef5d314c
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue