diff options
| author | Daiki Ihara <sasurau4@gmail.com> | 2020-11-26 23:15:32 +0900 |
|---|---|---|
| committer | Daiki Ihara <sasurau4@gmail.com> | 2020-11-26 23:15:32 +0900 |
| commit | d4ee2f6dc5ba9d9e978ac052079ae3f6a5d4551b (patch) | |
| tree | ee3a78b469e5236bfb689e139e57ff81877785e3 /library/std/src/net | |
| parent | 0d9651648d3b741e81ba7042e49a07b78a441517 (diff) | |
| download | rust-d4ee2f6dc5ba9d9e978ac052079ae3f6a5d4551b.tar.gz rust-d4ee2f6dc5ba9d9e978ac052079ae3f6a5d4551b.zip | |
Move const ip in ui test to unit test
Diffstat (limited to 'library/std/src/net')
| -rw-r--r-- | library/std/src/net/ip/tests.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/library/std/src/net/ip/tests.rs b/library/std/src/net/ip/tests.rs index d9fbdd1b5e7..44fb3adf070 100644 --- a/library/std/src/net/ip/tests.rs +++ b/library/std/src/net/ip/tests.rs @@ -936,4 +936,10 @@ fn ip_const() { const IS_MULTICAST: bool = IP_ADDRESS.is_multicast(); assert!(!IS_MULTICAST); + + const IS_IP_V4: bool = IP_ADDRESS.is_ipv4(); + assert!(IS_IP_V4); + + const IS_IP_V6: bool = IP_ADDRESS.is_ipv6(); + assert!(!IS_IP_V6); } |
