Skip to content

Commit 79087ae

Browse files
authored
Rollup merge of rust-lang#79444 - sasurau4:test/move-const-ip, r=matklad
Move const ip in ui test to unit test Helps with rust-lang#76268 r? ``@matklad``
2 parents 243dbc7 + 64de7d9 commit 79087ae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

std/src/net/ip/tests.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,4 +936,10 @@ fn ip_const() {
936936

937937
const IS_MULTICAST: bool = IP_ADDRESS.is_multicast();
938938
assert!(!IS_MULTICAST);
939+
940+
const IS_IP_V4: bool = IP_ADDRESS.is_ipv4();
941+
assert!(IS_IP_V4);
942+
943+
const IS_IP_V6: bool = IP_ADDRESS.is_ipv6();
944+
assert!(!IS_IP_V6);
939945
}

0 commit comments

Comments
 (0)