| 1 | mod utilrust-analyzer cargo rust-apt 0.8.0 util/ { |
| 2 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::cmprust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/::Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#; |
| 3 | |
| 4 | use rust_aptrust-analyzer cargo rust-apt 0.8.0 crate/::utilrust-analyzer cargo rust-apt 0.8.0 util/; |
| 5 | |
| 6 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 7 | fn cmp_versionsrust-analyzer cargo rust-apt 0.8.0 util/cmp_versions().() { |
| 8 | let ver1 = "5.0"; |
| 9 | let ver2 = "6.0"; |
| 10 | |
| 11 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Lessrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Less#, utilrust-analyzer cargo rust-apt 0.8.0 util/::cmp_versionsrust-analyzer cargo rust-apt 0.8.0 util/cmp_versions().(ver1, ver2)); |
| 12 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Equalrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Equal#, utilrust-analyzer cargo rust-apt 0.8.0 util/::cmp_versionsrust-analyzer cargo rust-apt 0.8.0 util/cmp_versions().(ver1, ver1)); |
| 13 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::Greaterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Greater#, utilrust-analyzer cargo rust-apt 0.8.0 util/::cmp_versionsrust-analyzer cargo rust-apt 0.8.0 util/cmp_versions().(ver2, ver1)); |
| 14 | } |
| 15 | } |