Commit 703858ca authored by Scott Abbey's avatar Scott Abbey

Update tests

parent bd27ecfa
......@@ -225,7 +225,7 @@ mod tests {
let parsed = parse_version(version).unwrap();
let expected_pre = Some(vec![String::from("pre")]);
let expected_pre = Some(vec![Identifier::AlphaNumeric(String::from("pre"))]);
assert_eq!(expected_pre, parsed.pre);
}
......@@ -235,7 +235,7 @@ mod tests {
let parsed = parse_version(version).unwrap();
let expected_pre = Some(vec![String::from("alpha1")]);
let expected_pre = Some(vec![Identifier::AlphaNumeric(String::from("alpha1"))]);
assert_eq!(expected_pre, parsed.pre);
}
......@@ -245,7 +245,7 @@ mod tests {
let parsed = parse_version(version).unwrap();
let expected_build = Some(vec![String::from("build")]);
let expected_build = Some(vec![Identifier::AlphaNumeric(String::from("build"))]);
assert_eq!(expected_build, parsed.build);
}
......@@ -255,7 +255,7 @@ mod tests {
let parsed = parse_version(version).unwrap();
let expected_build = Some(vec![String::from("build5")]);
let expected_build = Some(vec![Identifier::AlphaNumeric(String::from("build5"))]);
assert_eq!(expected_build, parsed.build);
}
......@@ -265,10 +265,10 @@ mod tests {
let parsed = parse_version(version).unwrap();
let expected_pre = Some(vec![String::from("alpha1")]);
let expected_pre = Some(vec![Identifier::AlphaNumeric(String::from("alpha1"))]);
assert_eq!(expected_pre, parsed.pre);
let expected_build = Some(vec![String::from("build5")]);
let expected_build = Some(vec![Identifier::AlphaNumeric(String::from("build5"))]);
assert_eq!(expected_build, parsed.build);
}
......@@ -278,10 +278,14 @@ mod tests {
let parsed = parse_version(version).unwrap();
let expected_pre = Some(vec![String::from("1.alpha1.9")]);
let expected_pre = Some(vec![Identifier::Numeric(1),
Identifier::AlphaNumeric(String::from("alpha1")),
Identifier::Numeric(9)]);
assert_eq!(expected_pre, parsed.pre);
let expected_build = Some(vec![String::from("build5.7.3aedf")]);
let expected_build = Some(vec![Identifier::AlphaNumeric(String::from("build5")),
Identifier::Numeric(7),
Identifier::AlphaNumeric(String::from("3aedf"))]);
assert_eq!(expected_build, parsed.build);
}
......@@ -291,10 +295,11 @@ mod tests {
let parsed = parse_version(version).unwrap();
let expected_pre = Some(vec![String::from("beta.1")]);
let expected_pre = Some(vec![Identifier::AlphaNumeric(String::from("beta")),
Identifier::Numeric(1)]);
assert_eq!(expected_pre, parsed.pre);
let expected_build = Some(vec![String::from("0851523")]);
let expected_build = Some(vec![Identifier::AlphaNumeric(String::from("0851523"))]);
assert_eq!(expected_build, parsed.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