Compare commits
3 Commits
simple-enu
...
odin
Author | SHA1 | Date | |
---|---|---|---|
|
efd44e16e2 | ||
b40178ede2 | |||
3d1380b971 |
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user