File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -732,14 +732,14 @@ mod tests {
732732    fn  link_samefile_union ( )  { 
733733        link_test ( "../../testdata/default/linking/samefile_union" ,  |linker| { 
734734            // fail fast if the artifact is missing (prevents false positives) 
735-             let  artifact_exists = linker
736-                 . output 
737-                 . artifact_ids ( ) 
738-                 . any ( | ( id ,  _ ) |  { 
739-                     let  source = id . source . strip_prefix ( linker . project . root ( ) ) . unwrap_or ( & id . source ) ; 
740-                     id . name  ==  "UsesBoth"  && 
741-                         source == std :: path :: Path :: new ( "default/linking/samefile_union/SameFileUnion.t.sol" ) 
742-                  } ) ; 
735+             let  artifact_exists = linker. output . artifact_ids ( ) . any ( | ( id ,  _ ) |  { 
736+                 let  source = id . source . strip_prefix ( linker . project . root ( ) ) . unwrap_or ( & id . source ) ; 
737+                 id . name  ==  "UsesBoth" 
738+                     && source 
739+                         == std :: path :: Path :: new ( 
740+                              "default/linking/samefile_union/SameFileUnion.t.sol" , 
741+                         ) 
742+             } ) ; 
743743            assert ! ( artifact_exists,  "Expected UsesBoth artifact to be compiled" ) ; 
744744
745745            linker
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments