Skip to content

Commit

Permalink
Fix SocketAddrV6: Display tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clarfonthey committed Jun 14, 2023
1 parent 2f2c3f5 commit 2dce58d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/core/tests/net/socket_addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/net/socket_addr/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2dce58d

Please sign in to comment.