diff --git a/src/version_req.rs b/src/version_req.rs index d7e50859..cd2616e5 100644 --- a/src/version_req.rs +++ b/src/version_req.rs @@ -812,5 +812,9 @@ mod test { let v = "0.*.*".parse::().unwrap(); assert_eq!("0.*.*", format!("{}", v.predicates[0])); + + let v = "0.0.*".parse::().unwrap(); + + assert_eq!("0.0.*", format!("{}", v.predicates[0])); } }