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

Function test_diff_replace

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

Source from the content-addressed store, hash-verified

787
788 #[test]
789 fn test_diff_replace() {
790 let old = b"line1\nold\nline3\n";
791 let new = b"line1\nnew\nline3\n";
792 let result = diff_text(old, new, Algorithm::Myers);
793 assert!(!result.is_unchanged());
794 }
795
796 #[test]
797 fn test_common_affixes() {

Callers

nothing calls this directly

Calls 1

diff_textFunction · 0.85

Tested by

no test coverage detected