Skip to content

Commit

Permalink
std::net: fix tests for site-local ipv6 addresses
Browse files Browse the repository at this point in the history
Ipv6Addr::is_unicast_global() now returns `true` for unicast site
local addresses, since they are deprecated.
  • Loading branch information
little-dude committed Apr 22, 2019
1 parent c302d2c commit 99d9bb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/net/ip.rs
Expand Up @@ -2032,7 +2032,7 @@ mod tests {
check!("fdff:ffff::");
check!("fe80:ffff::");
check!("febf:ffff::");
check!("fec0::");
check!("fec0::", global);
check!("ff01::", multicast);
check!("ff02::", multicast);
check!("ff03::", multicast);
Expand Down Expand Up @@ -2310,7 +2310,7 @@ mod tests {

check!("fec0::",
&[0xfe, 0xc0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
unicast_site_local);
unicast_site_local|unicast_global|global);

check!("ff01::",
&[0xff, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
Expand Down

0 comments on commit 99d9bb6

Please sign in to comment.