mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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]
|
#[test]
|
||||||
fn test_weirdness() {
|
fn test_weirdness() {
|
||||||
// These are weird results, but AFAICT they are spec-compliant.
|
// 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")));
|
assert!(!is_pub_domain(pub_suffix("city.yokohama.jp")));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue