simply even test

This commit is contained in:
Marc Planard 2022-11-23 14:09:58 +01:00
parent 24616479be
commit 29d39d1420

View File

@ -81,8 +81,8 @@ fn test_ip_from_str() {
#[test] #[test]
fn test_ip_is_even() { fn test_ip_is_even() {
assert_eq!(Ip::new(127, 0, 0, 1).is_even(), false); assert!(!Ip::new(127, 0, 0, 1).is_even());
assert_eq!(Ip::new(192, 168, 0, 2).is_even(), true); assert!(Ip::new(192, 168, 0, 2).is_even());
} }
#[test] #[test]