Skip to content

Commit c302d2c

Browse files
committed
std::net: fix Ipv4addr::is_global() tests
Ipv4addr::is_global() previously considered 0/8 was global, but has now been fixed, so these tests needed to be fixed as well.
1 parent c34bcc6 commit c302d2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/net/ip.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,8 +2008,8 @@ mod tests {
20082008
let doc: u8 = 1 << 4;
20092009

20102010
check!("0.0.0.0", unspec);
2011-
check!("0.0.0.1", global);
2012-
check!("0.1.0.0", global);
2011+
check!("0.0.0.1");
2012+
check!("0.1.0.0");
20132013
check!("10.9.8.7");
20142014
check!("127.1.2.3", loopback);
20152015
check!("172.31.254.253");
@@ -2127,8 +2127,8 @@ mod tests {
21272127
let documentation: u8 = 1 << 7;
21282128

21292129
check!("0.0.0.0", unspec);
2130-
check!("0.0.0.1", global);
2131-
check!("0.1.0.0", global);
2130+
check!("0.0.0.1");
2131+
check!("0.1.0.0");
21322132
check!("10.9.8.7", private);
21332133
check!("127.1.2.3", loopback);
21342134
check!("172.31.254.253", private);

0 commit comments

Comments
 (0)