()
| 904 | |
| 905 | #[test] |
| 906 | fn test_diff_patience_vs_myers() { |
| 907 | // Both algorithms should produce valid diffs |
| 908 | let old = b"a\nb\nc\nd\n"; |
| 909 | let new = b"a\nx\nc\ny\n"; |
| 910 | |
| 911 | let myers = diff_text(old, new, Algorithm::Myers); |
| 912 | let patience = diff_text(old, new, Algorithm::Patience); |
| 913 | |
| 914 | // Both should indicate changes happened |
| 915 | assert!(!myers.is_unchanged()); |
| 916 | assert!(!patience.is_unchanged()); |
| 917 | } |
| 918 | } |
nothing calls this directly
no test coverage detected