Use specific negative assertion for unit tests of net trait pub_domain

This commit is contained in:
CYBAI 2018-01-26 01:55:39 +08:00
parent baccc4eda2
commit 86b876c52e

View file

@ -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")));
}