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

Function test_delete_all

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

Source from the content-addressed store, hash-verified

401
402 #[test]
403 fn test_delete_all() {
404 let old = lines(&["a\n", "b\n", "c\n"]);
405 let new: Vec<Line> = vec![];
406
407 let result = diff(&old, &new);
408
409 assert_eq!(result.deletions(), 3);
410 assert_eq!(result.insertions(), 0);
411 }
412
413 #[test]
414 fn test_identical() {

Callers

nothing calls this directly

Calls 2

linesFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected