Skip to content

Commit

Permalink
Replace assert_eq with assert for bool comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
achanda committed Apr 7, 2023
1 parent b624487 commit 0bb1ea8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ipv4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 0bb1ea8

Please sign in to comment.