Sign in
android
/
platform
/
prebuilts
/
rust
/
84b9913596d18689a8c2f638645264b1f21f1ed6
/
.
/
linux-musl-x86
/
1.74.1
/
lib
/
rustlib
/
src
/
rust
/
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
));
}