summaryrefslogtreecommitdiffstats
path: root/library/std/src/net/ip_addr/tests.rs
blob: ab99c0c2fcc160cf57817ee3c93c023ff94e4d55 (plain)
1
2
3
4
5
6
7
8
use crate::net::test::{sa4, tsa};
use crate::net::Ipv4Addr;

#[test]
fn to_socket_addr_socketaddr() {
    let a = sa4(Ipv4Addr::new(77, 88, 21, 11), 12345);
    assert_eq!(Ok(vec![a]), tsa(a));
}