mirror of
https://github.com/achanda/ipnetwork.git
synced 2025-06-15 00:26:33 +00:00
fix for 0.0.0.0/0 network (#199)
This commit is contained in:
@ -82,4 +82,12 @@ mod tests {
|
||||
panic!("{}", s);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#[test]
|
||||
fn test_ipnetwork_size_with_prefix_0() {
|
||||
let network: Ipv4Network = "0.0.0.0/0".parse().unwrap();
|
||||
let size = network.size();
|
||||
assert_eq!(size, u32::MAX);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user