mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Use specific negative assertion for unit tests of net trait pub_domain
This commit is contained in:
parent
baccc4eda2
commit
86b876c52e
1 changed files with 1 additions and 1 deletions
|
@ -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")));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue