MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_fallback_to_myers

Function test_fallback_to_myers

atomic-core/src/diff/patience.rs:620–629  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

linesFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected