Add more from the std
This commit is contained in:
8
crates/std/src/net/ip_addr/tests.rs
Normal file
8
crates/std/src/net/ip_addr/tests.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
use crate::net::Ipv4Addr;
|
||||
use crate::net::test::{sa4, tsa};
|
||||
|
||||
#[test]
|
||||
fn to_socket_addr_socketaddr() {
|
||||
let a = sa4(Ipv4Addr::new(77, 88, 21, 11), 12345);
|
||||
assert_eq!(Ok(vec![a]), tsa(a));
|
||||
}
|
||||
Reference in New Issue
Block a user