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

Function test_diff_patience_vs_myers

atomic-core/src/diff/mod.rs:967–978  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)]

Callers

nothing calls this directly

Calls 1

diff_textFunction · 0.85

Tested by

no test coverage detected