Replace assert_eq with assert for bool comparison

This commit is contained in:
Abhishek Chanda
2023-04-07 12:05:59 -05:00
committed by Abhishek Chanda
parent b624487f72
commit 0bb1ea8fd4

View File

@ -669,9 +669,9 @@ mod test {
let other3: Ipv4Network = "1.2.2.64/26".parse().unwrap();
let skynet: Ipv4Network = "1.2.3.0/24".parse().unwrap();
assert_eq!(skynet.overlaps(other), true);
assert_eq!(skynet.overlaps(other2), false);
assert_eq!(other2.overlaps(other3), true);
assert!(skynet.overlaps(other));
assert!(!skynet.overlaps(other2));
assert!(other2.overlaps(other3));
}
#[test]