You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let v = Version::parse(format!("1.2.{}", out_of_range));
806
-
assert_eq!(v.err().expect("Parse should have failed.").to_string(),"Integer component of semver string is larger than JavaScript's Number.MAX_SAFE_INTEGER: 900719925474100");
806
+
assert_eq!(v.expect_err("Parse should have failed.").to_string(),"Integer component of semver string is larger than JavaScript's Number.MAX_SAFE_INTEGER: 900719925474100");
807
807
}
808
808
809
809
#[test]
@@ -813,7 +813,7 @@ mod tests {
813
813
let v = Version::parse(version_string.clone());
814
814
815
815
assert_eq!(
816
-
v.err().expect("Parse should have failed").to_string(),
816
+
v.expect_err("Parse should have failed").to_string(),
817
817
"Semver string can't be longer than 256 characters."
0 commit comments