We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 613d3d4 commit dd1ed8aCopy full SHA for dd1ed8a
src/uri/authority.rs
@@ -546,6 +546,14 @@ mod tests {
546
assert_eq!(authority2, authority1);
547
}
548
549
+ #[test]
550
+ fn equal_to_self_of_same_authority_with_port() {
551
+ let authority1: Authority = "example.com:80".parse().unwrap();
552
+ let authority2: Authority = "EXAMPLE.COM:80".parse().unwrap();
553
+ assert_eq!(authority1, authority2);
554
+ assert_eq!(authority2, authority1);
555
+ }
556
+
557
#[test]
558
fn not_equal_to_self_of_different_authority() {
559
let authority1: Authority = "example.com".parse().unwrap();
0 commit comments