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

Function test_diff_replace

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

Source from the content-addressed store, hash-verified

848
849 #[test]
850 fn test_diff_replace() {
851 let old = b"line1\nold\nline3\n";
852 let new = b"line1\nnew\nline3\n";
853 let result = diff_text(old, new, Algorithm::Myers);
854 assert!(!result.is_unchanged());
855 }
856
857 #[test]
858 fn test_common_affixes() {

Callers

nothing calls this directly

Calls 1

diff_textFunction · 0.85

Tested by

no test coverage detected