Compare commits

...

3 Commits

View File

@ -267,6 +267,16 @@ mod tests {
)
}
#[test]
fn to_string() {
let s = "3.14.0_beta2-riscv64";
let version: Version = s.parse().unwrap();
assert_eq!(s, version.to_string());
let s = "3.14.6_git_r2d2xxx.1705881493-x86_64";
let version: Version = s.parse().unwrap();
assert_eq!(s, version.to_string());
}
#[test]
fn cmp() {
let astr = "3.14.0-x86_64";