@@ -558,17 +558,13 @@ impl std::str::FromStr for Url {
558
558
559
559
#[ cfg( test) ]
560
560
mod test {
561
-
562
561
use super :: * ;
563
562
#[ test]
564
563
fn should_display_serialization ( ) {
565
564
let tests = [
566
565
( "http://example.com/" , "http://example.com/" ) ,
567
566
( "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:[email protected] " , "http://user:[email protected] /" ) ,
572
568
] ;
573
569
for ( value, expected) in tests {
574
570
let url = Url :: parse ( value, None ) . expect ( "Should have parsed url" ) ;
@@ -613,13 +609,13 @@ mod test {
613
609
) ;
614
610
}
615
611
}
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
+ // }
623
619
#[ test]
624
620
fn should_order_alphabetically ( ) {
625
621
let left = Url :: parse ( "https://example.com/" , None ) . expect ( "Should have parsed url" ) ;
0 commit comments