Fix SocketAddrV6: Display tests

This commit is contained in:
ltdk 2023-06-14 14:59:11 -04:00
parent 2f2c3f55a9
commit 2dce58d0f6
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ fn ipv6_socket_addr_to_string() {
// IPv4-compatible address.
assert_eq!(
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.

View File

@ -85,7 +85,7 @@ fn ipv6_socket_addr_to_string() {
// IPv4-compatible address.
assert_eq!(
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.