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

Function test_diff_delete

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

Source from the content-addressed store, hash-verified

838
839 #[test]
840 fn test_diff_delete() {
841 let old = b"line1\nline2\nline3\n";
842 let new = b"line1\nline3\n";
843 let result = diff_text(old, new, Algorithm::Myers);
844 assert!(!result.is_unchanged());
845 assert_eq!(result.deletions(), 1);
846 assert_eq!(result.insertions(), 0);
847 }
848
849 #[test]
850 fn test_diff_replace() {

Callers

nothing calls this directly

Calls 1

diff_textFunction · 0.85

Tested by

no test coverage detected