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 11//! Tests for displaying the cargo version. 
22
3- use  cargo_test_support:: { cargo_process,  project,  str} ; 
4- use  snapbox:: IntoData  as  _; 
3+ use  cargo_test_support:: { cargo_process,  project} ; 
54
65#[ cargo_test]  
76fn  simple ( )  { 
@@ -52,18 +51,19 @@ fn version_works_with_bad_target_dir() {
5251fn  verbose ( )  { 
5352    // This is mainly to check that it doesn't explode. 
5453    cargo_process ( "-vV" ) 
55-         . with_stdout_data ( 
56-             str! [ [ r#" 
57- cargo [..] ([..] [..])  
54+         . with_stdout_data ( format ! ( 
55+             " \ 
56+ {} 
5857release: [..] 
5958commit-hash: [..] 
6059commit-date: [..] 
6160host: [HOST_TARGET] 
6261libgit2: [..] (sys:[..] [..]) 
6362libcurl: [..] (sys:[..] [..]) 
6463... 
65- "# ] ] 
66-             . unordered ( ) , 
67-         ) 
64+ os: [..] 
65+ " , 
66+             cargo:: version( ) 
67+         ) ) 
6868        . run ( ) ; 
6969} 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments