()
| 618 | |
| 619 | #[test] |
| 620 | fn test_fallback_to_myers() { |
| 621 | // All lines are duplicates - no unique matches |
| 622 | let old = lines(&["{\n", "{\n", "}\n", "}\n"]); |
| 623 | let new = lines(&["{\n", "x\n", "{\n", "}\n", "}\n"]); |
| 624 | |
| 625 | let result = diff(&old, &new); |
| 626 | |
| 627 | // Should still produce valid diff (via Myers fallback) |
| 628 | assert!(!result.is_unchanged()); |
| 629 | } |
| 630 | |
| 631 | #[test] |
| 632 | fn test_complex_reordering() { |