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:906–917  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 1

diff_textFunction · 0.85

Tested by

no test coverage detected