Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/version-rs into odin

This commit is contained in:
Nathan Fisher 2024-02-08 18:56:37 -05:00
commit efd44e16e2

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] #[test]
fn cmp() { fn cmp() {
let astr = "3.14.0-x86_64"; let astr = "3.14.0-x86_64";