Skip to content

Commit

Permalink
Move const ip in ui test to unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sasurau4 committed Nov 26, 2020
1 parent 0d96516 commit d4ee2f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
6 changes: 6 additions & 0 deletions library/std/src/net/ip/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
13 changes: 0 additions & 13 deletions src/test/ui/consts/std/net/ip.rs

This file was deleted.

0 comments on commit d4ee2f6

Please sign in to comment.