Commit cf242cbb authored by Scott Abbey's avatar Scott Abbey

Add test

parent 8f603bfd
......@@ -314,4 +314,18 @@ mod tests {
let expected_build = Some(vec![Identifier::AlphaNumeric(String::from("0851523"))]);
fn parse_regression_01() {
let version = "0.0.0-WIP";
let parsed = parse_version(version).unwrap();
assert_eq!(0, parsed.major);
assert_eq!(0, parsed.minor);
assert_eq!(0, parsed.patch);
let expected_pre = Some(vec![Identifier::AlphaNumeric(String::from("WIP"))]);
assert_eq!(expected_pre, parsed.pre);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment