Fix SocketAddrV6: Display
tests
This commit is contained in:
parent
2f2c3f55a9
commit
2dce58d0f6
@ -34,7 +34,7 @@ fn ipv6_socket_addr_to_string() {
|
|||||||
// IPv4-compatible address.
|
// IPv4-compatible address.
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0xc000, 0x280), 8080, 0, 0).to_string(),
|
SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0xc000, 0x280), 8080, 0, 0).to_string(),
|
||||||
"[::192.0.2.128]:8080"
|
"[::c000:280]:8080"
|
||||||
);
|
);
|
||||||
|
|
||||||
// IPv6 address with no zero segments.
|
// IPv6 address with no zero segments.
|
||||||
|
@ -85,7 +85,7 @@ fn ipv6_socket_addr_to_string() {
|
|||||||
// IPv4-compatible address.
|
// IPv4-compatible address.
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0xc000, 0x280), 8080, 0, 0).to_string(),
|
SocketAddrV6::new(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0xc000, 0x280), 8080, 0, 0).to_string(),
|
||||||
"[::192.0.2.128]:8080"
|
"[::c000:280]:8080"
|
||||||
);
|
);
|
||||||
|
|
||||||
// IPv6 address with no zero segments.
|
// IPv6 address with no zero segments.
|
||||||
|
Loading…
Reference in New Issue
Block a user