mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Rustfmt net_traits crate
This commit is contained in:
parent
f512e262a5
commit
d41be1d56d
10 changed files with 229 additions and 131 deletions
|
@ -116,6 +116,9 @@ fn test_reg_suffix() {
|
|||
#[test]
|
||||
fn test_weirdness() {
|
||||
// These are weird results, but AFAICT they are spec-compliant.
|
||||
assert_ne!(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