Commit 30329b7d authored by Scott Abbey's avatar Scott Abbey

Add test

parent 7f4f9ec7
......@@ -239,6 +239,17 @@ mod tests {
assert_eq!(expected_pre, parsed.pre);
}
#[test]
fn parse_version_prerelease_zero() {
let version = "1.2.3-pre.0";
let parsed = parse_version(version).unwrap();
let expected_pre = Some(vec![Identifier::AlphaNumeric(String::from("pre")),
Identifier::Numeric(0)]);
assert_eq!(expected_pre, parsed.pre);
}
#[test]
fn parse_version_basic_build() {
let version = "1.2.3+build";
......
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