@@ -2327,9 +2327,10 @@ mod tests {
23272327 let ( output, has_conflicts) =
23282328 compute_diff3 ( mine, older, yours, & params) . expect ( "compute_diff3 failed" ) ;
23292329
2330- // Should detect the real conflict (not the CRLF)
2331- assert ! ( has_conflicts) ;
2332- assert ! ( !output. is_empty( ) , "Should produce output for conflicts" ) ;
2330+ // Normal format always returns false for has_conflicts (exit code 0)
2331+ // but should still produce diff output showing the differences
2332+ assert ! ( !has_conflicts, "Normal format always returns false for conflicts" ) ;
2333+ assert ! ( !output. is_empty( ) , "Should produce output showing differences" ) ;
23332334 }
23342335
23352336 #[ test]
@@ -2385,10 +2386,11 @@ mod tests {
23852386 compute_diff3 ( mine, older, yours, & params) . expect ( "compute_diff3 failed" ) ;
23862387 let output_str = String :: from_utf8_lossy ( & output) ;
23872388
2388- // With initial_tab, content lines should be prefixed with a tab and two spaces
2389+ // With initial_tab, content lines should be prefixed with a tab
2390+ // (without initial_tab they would be prefixed with two spaces)
23892391 assert ! (
2390- output_str. contains( "\t " ) ,
2391- "Should have tab and two spaces before content"
2392+ output_str. contains( "\t " ) ,
2393+ "Should have tab before content"
23922394 ) ;
23932395 }
23942396
0 commit comments