Sign in
android
/
toolchain
/
rustc
/
5c0824a599f2f1f4dcb9c92edf09f6c1b555988d
/
.
/
library
/
std
/
src
/
net
/
ip_addr
/
tests.rs
blob: ab99c0c2fcc160cf57817ee3c93c023ff94e4d55 [
file
] [
log
] [
blame
]
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
));
}