Skip to content

Commit

Permalink
fix error normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
wmmc88 committed Sep 13, 2024
1 parent a600231 commit 760b974
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/wdk-build/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,55 +464,55 @@ mod tests {
assert_eq!(
format!("{}", get_wdk_version_number(test_string).err().unwrap()),
format!(
"The WDK version string provided ({}) was not in a valid format.",
"the WDK version string provided ({}) was not in a valid format.",
test_string
)
);
let test_string = "10.0.12345.0.0";
assert_eq!(
format!("{}", get_wdk_version_number(test_string).err().unwrap()),
format!(
"The WDK version string provided ({}) was not in a valid format.",
"the WDK version string provided ({}) was not in a valid format.",
test_string
)
);
let test_string = "10.0.12345.a";
assert_eq!(
format!("{}", get_wdk_version_number(test_string).err().unwrap()),
format!(
"The WDK version string provided ({}) was not in a valid format.",
"the WDK version string provided ({}) was not in a valid format.",
test_string
)
);
let test_string = "10.0.12345";
assert_eq!(
format!("{}", get_wdk_version_number(test_string).err().unwrap()),
format!(
"The WDK version string provided ({}) was not in a valid format.",
"the WDK version string provided ({}) was not in a valid format.",
test_string
)
);
let test_string = "10.0.1234!5.0";
assert_eq!(
format!("{}", get_wdk_version_number(test_string).err().unwrap()),
format!(
"The WDK version string provided ({}) was not in a valid format.",
"the WDK version string provided ({}) was not in a valid format.",
test_string
)
);
let test_string = "Not a real version!";
assert_eq!(
format!("{}", get_wdk_version_number(test_string).err().unwrap()),
format!(
"The WDK version string provided ({}) was not in a valid format.",
"the WDK version string provided ({}) was not in a valid format.",
test_string
)
);
let test_string = "";
assert_eq!(
format!("{}", get_wdk_version_number(test_string).err().unwrap()),
format!(
"The WDK version string provided ({}) was not in a valid format.",
"the WDK version string provided ({}) was not in a valid format.",
test_string
)
);
Expand Down

0 comments on commit 760b974

Please sign in to comment.