File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -446,14 +446,30 @@ mod tests {
446446 fb. write_all ( & bet[ ..] ) . unwrap ( ) ;
447447 let _ = fa;
448448 let _ = fb;
449+ println ! (
450+ "diff: {:?}" ,
451+ String :: from_utf8( diff. clone( ) )
452+ . unwrap_or_else( |_| String :: from( "[Invalid UTF-8]" ) )
453+ ) ;
454+ println ! (
455+ "alef: {:?}" ,
456+ String :: from_utf8( alef. clone( ) )
457+ . unwrap_or_else( |_| String :: from( "[Invalid UTF-8]" ) )
458+ ) ;
459+ println ! (
460+ "bet: {:?}" ,
461+ String :: from_utf8( bet. clone( ) )
462+ . unwrap_or_else( |_| String :: from( "[Invalid UTF-8]" ) )
463+ ) ;
464+
449465 let output = Command :: new ( "patch" )
450466 . arg ( "-p0" )
451467 . stdin ( File :: open ( & format ! ( "{target}/ab.diff" ) ) . unwrap ( ) )
452468 . output ( )
453469 . unwrap ( ) ;
470+ println ! ( "{}" , String :: from_utf8_lossy( & output. stdout) ) ;
471+ println ! ( "{}" , String :: from_utf8_lossy( & output. stderr) ) ;
454472 assert ! ( output. status. success( ) , "{:?}" , output) ;
455- //println!("{}", String::from_utf8_lossy(&output.stdout));
456- //println!("{}", String::from_utf8_lossy(&output.stderr));
457473 let alef = fs:: read ( & format ! ( "{target}/alef" ) ) . unwrap ( ) ;
458474 assert_eq ! ( alef, bet) ;
459475 }
You can’t perform that action at this time.
0 commit comments