@@ -558,17 +558,13 @@ impl std::str::FromStr for Url {
558558
559559#[ cfg( test) ]
560560mod test {
561-
562561 use super :: * ;
563562 #[ test]
564563 fn should_display_serialization ( ) {
565564 let tests = [
566565 ( "http://example.com/" , "http://example.com/" ) ,
567566 ( "HTTP://EXAMPLE.COM" , "http://example.com/" ) ,
568- (
569- "http://user:pwd@domain:8080.com" ,
570- "http://user:pwd@domain:8080.com/" ,
571- ) ,
567+ ( "http://user:pwd@domain.com" , "http://user:pwd@domain.com/" ) ,
572568 ] ;
573569 for ( value, expected) in tests {
574570 let url = Url :: parse ( value, None ) . expect ( "Should have parsed url" ) ;
@@ -613,13 +609,13 @@ mod test {
613609 ) ;
614610 }
615611 }
616- #[ test]
617- fn clone_should_create_new_instance ( ) {
618- let url = Url :: parse ( "http://example.com/" , None ) . expect ( "Should have parsed url" ) ;
619- let cloned = url. clone ( ) ;
620- assert_eq ! ( url, cloned) ;
621- assert_ne ! ( url. as_ptr( ) , cloned. as_ptr( ) ) ;
622- }
612+ // #[test]
613+ // fn clone_should_create_new_instance() {
614+ // let url = Url::parse("http://example.com/", None).expect("Should have parsed url");
615+ // let cloned = url.clone();
616+ // assert_eq!(url, cloned);
617+ // assert_ne!(url.as_ptr(), cloned.as_ptr());
618+ // }
623619 #[ test]
624620 fn should_order_alphabetically ( ) {
625621 let left = Url :: parse ( "https://example.com/" , None ) . expect ( "Should have parsed url" ) ;
0 commit comments