simply even test
This commit is contained in:
parent
24616479be
commit
29d39d1420
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user