From 86b876c52e36d6e14329928a633e00df818c62b1 Mon Sep 17 00:00:00 2001 From: CYBAI Date: Fri, 26 Jan 2018 01:55:39 +0800 Subject: [PATCH] Use specific negative assertion for unit tests of net trait pub_domain --- components/net_traits/tests/pub_domains.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/net_traits/tests/pub_domains.rs b/components/net_traits/tests/pub_domains.rs index 36e70cd39a8..fa298633f6c 100644 --- a/components/net_traits/tests/pub_domains.rs +++ b/components/net_traits/tests/pub_domains.rs @@ -116,6 +116,6 @@ fn test_reg_suffix() { #[test] fn test_weirdness() { // These are weird results, but AFAICT they are spec-compliant. - assert!(pub_suffix("city.yokohama.jp") != pub_suffix(pub_suffix("city.yokohama.jp"))); + assert_ne!(pub_suffix("city.yokohama.jp"), pub_suffix(pub_suffix("city.yokohama.jp"))); assert!(!is_pub_domain(pub_suffix("city.yokohama.jp"))); }