mirror of
https://github.com/achanda/ipnetwork.git
synced 2025-06-17 17:28:51 +00:00
Replace assert_eq with assert for bool comparison
This commit is contained in:

committed by
Abhishek Chanda

parent
b624487f72
commit
0bb1ea8fd4
@ -669,9 +669,9 @@ mod test {
|
|||||||
let other3: Ipv4Network = "1.2.2.64/26".parse().unwrap();
|
let other3: Ipv4Network = "1.2.2.64/26".parse().unwrap();
|
||||||
|
|
||||||
let skynet: Ipv4Network = "1.2.3.0/24".parse().unwrap();
|
let skynet: Ipv4Network = "1.2.3.0/24".parse().unwrap();
|
||||||
assert_eq!(skynet.overlaps(other), true);
|
assert!(skynet.overlaps(other));
|
||||||
assert_eq!(skynet.overlaps(other2), false);
|
assert!(!skynet.overlaps(other2));
|
||||||
assert_eq!(other2.overlaps(other3), true);
|
assert!(other2.overlaps(other3));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Reference in New Issue
Block a user