@@ -2,29 +2,29 @@ use super::*;
22
33#[ test]
44fn virtual_path_extensions ( ) {
5- assert_eq ! ( VirtualPath ( "/" . to_string ( ) ) . name_and_extension( ) , None ) ;
5+ assert_eq ! ( VirtualPath ( "/" . to_owned ( ) ) . name_and_extension( ) , None ) ;
66 assert_eq ! (
7- VirtualPath ( "/directory" . to_string ( ) ) . name_and_extension( ) ,
7+ VirtualPath ( "/directory" . to_owned ( ) ) . name_and_extension( ) ,
88 Some ( ( "directory" , None ) )
99 ) ;
1010 assert_eq ! (
11- VirtualPath ( "/directory/" . to_string ( ) ) . name_and_extension( ) ,
11+ VirtualPath ( "/directory/" . to_owned ( ) ) . name_and_extension( ) ,
1212 Some ( ( "directory" , None ) )
1313 ) ;
1414 assert_eq ! (
15- VirtualPath ( "/directory/file" . to_string ( ) ) . name_and_extension( ) ,
15+ VirtualPath ( "/directory/file" . to_owned ( ) ) . name_and_extension( ) ,
1616 Some ( ( "file" , None ) )
1717 ) ;
1818 assert_eq ! (
19- VirtualPath ( "/directory/.file" . to_string ( ) ) . name_and_extension( ) ,
19+ VirtualPath ( "/directory/.file" . to_owned ( ) ) . name_and_extension( ) ,
2020 Some ( ( ".file" , None ) )
2121 ) ;
2222 assert_eq ! (
23- VirtualPath ( "/directory/.file.rs" . to_string ( ) ) . name_and_extension( ) ,
23+ VirtualPath ( "/directory/.file.rs" . to_owned ( ) ) . name_and_extension( ) ,
2424 Some ( ( ".file" , Some ( "rs" ) ) )
2525 ) ;
2626 assert_eq ! (
27- VirtualPath ( "/directory/file.rs" . to_string ( ) ) . name_and_extension( ) ,
27+ VirtualPath ( "/directory/file.rs" . to_owned ( ) ) . name_and_extension( ) ,
2828 Some ( ( "file" , Some ( "rs" ) ) )
2929 ) ;
3030}
0 commit comments