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
1 changed files with 10 additions and 0 deletions

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";