Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/version-rs into odin
This commit is contained in:
commit
efd44e16e2
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user