Commit fbc9bdf1 authored by Scott Abbey's avatar Scott Abbey

Add tests

parent a02e3837
......@@ -89,4 +89,13 @@ mod tests {
assert!(parsed.is_err(), "01 incorrectly considered a valid patch version");
fn parse_version_basic_prerelease() {
let version = "1.2.3-pre";
let parsed = parse_version(version).unwrap();
assert_eq!(Some(String::from("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