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

Function test_delete_at_start

atomic-core/src/diff/myers.rs:309–317  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

307
308 #[test]
309 fn test_delete_at_start() {
310 let old = lines(&["a\n", "b\n", "c\n"]);
311 let new = lines(&["b\n", "c\n"]);
312
313 let result = diff(&old, &new);
314
315 assert_eq!(result.deletions(), 1);
316 assert_eq!(result.insertions(), 0);
317 }
318
319 #[test]
320 fn test_delete_at_end() {

Callers

nothing calls this directly

Calls 2

linesFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected