mirror of
https://github.com/achanda/ipnetwork.git
synced 2025-06-16 16:58:50 +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 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]
|
||||
|
Reference in New Issue
Block a user