]>
git.proxmox.com Git - rustc.git/blob - library/std/src/sys/unix/os/tests.rs
4 fn test_glibc_version() {
5 // This mostly just tests that the weak linkage doesn't panic wildly...
10 fn test_parse_glibc_version() {
12 ("0.0", Some((0, 0))),
13 ("01.+2", Some((1, 2))),
14 ("3.4.5.six", Some((3, 4))),
20 for &(version_str
, parsed
) in cases
.iter() {
21 assert_eq
!(parsed
, parse_glibc_version(version_str
));