about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorCorentin Henry <corentinhenry@gmail.com>2019-04-20 22:33:05 +0200
committerCorentin Henry <corentinhenry@gmail.com>2019-04-22 16:03:39 +0200
commitc302d2c78f94839473a7e9be3eb4756d0f1e2508 (patch)
tree0bc1fd901db95c79e9153ecb01e262a240d7da9e /src/libstd
parentc34bcc658b46fa0368c2faa75c0fa8767afab920 (diff)
downloadrust-c302d2c78f94839473a7e9be3eb4756d0f1e2508.tar.gz
rust-c302d2c78f94839473a7e9be3eb4756d0f1e2508.zip
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.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/net/ip.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/net/ip.rs b/src/libstd/net/ip.rs
index 17200d7b94a..cd78eb05c11 100644
--- a/src/libstd/net/ip.rs
+++ b/src/libstd/net/ip.rs
@@ -2008,8 +2008,8 @@ mod tests {
         let doc: u8 = 1 << 4;
 
         check!("0.0.0.0", unspec);
-        check!("0.0.0.1", global);
-        check!("0.1.0.0", global);
+        check!("0.0.0.1");
+        check!("0.1.0.0");
         check!("10.9.8.7");
         check!("127.1.2.3", loopback);
         check!("172.31.254.253");
@@ -2127,8 +2127,8 @@ mod tests {
         let documentation: u8 = 1 << 7;
 
         check!("0.0.0.0", unspec);
-        check!("0.0.0.1", global);
-        check!("0.1.0.0", global);
+        check!("0.0.0.1");
+        check!("0.1.0.0");
         check!("10.9.8.7", private);
         check!("127.1.2.3", loopback);
         check!("172.31.254.253", private);