()
| 965 | |
| 966 | #[test] |
| 967 | fn test_diff_patience_vs_myers() { |
| 968 | // Both algorithms should produce valid diffs |
| 969 | let old = b"a\nb\nc\nd\n"; |
| 970 | let new = b"a\nx\nc\ny\n"; |
| 971 | |
| 972 | let myers = diff_text(old, new, Algorithm::Myers); |
| 973 | let patience = diff_text(old, new, Algorithm::Patience); |
| 974 | |
| 975 | // Both should indicate changes happened |
| 976 | assert!(!myers.is_unchanged()); |
| 977 | assert!(!patience.is_unchanged()); |
| 978 | } |
| 979 | } |
| 980 | |
| 981 | #[cfg(test)] |
nothing calls this directly
no test coverage detected