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

Function test_single_delete

atomic-core/src/diff/patience.rs:435–443  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

433
434 #[test]
435 fn test_single_delete() {
436 let old = lines(&["a\n", "b\n", "c\n"]);
437 let new = lines(&["a\n", "c\n"]);
438
439 let result = diff(&old, &new);
440
441 assert_eq!(result.deletions(), 1);
442 assert_eq!(result.insertions(), 0);
443 }
444
445 #[test]
446 fn test_replace() {

Callers

nothing calls this directly

Calls 2

linesFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected