3 std::println!("{}", liba::version::check(0, 0, 0));
4 std::println!("major {}", liba::version::major());
5 std::println!("minor {}", liba::version::minor());
6 std::println!("patch {}", liba::version::patch());
7 std::println!("tweak {}", liba::version::tweak());
8 let v000 = liba::version::new(0, 0, 0);
9 let mut v001 = liba::version::new(0, 0, 0);
10 let mut ver = [0u8; 48];
11 v001.parse("0.0.1-a.1");
13 std::println!("{}", std::str::from_utf8(&ver).unwrap());
16 assert!(v000 >= v000);
17 assert!(v000 <= v000);
18 assert!(v000 == v000);
19 assert!(v000 != v001);