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

Function test_delete_at_end

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

Source from the content-addressed store, hash-verified

318
319 #[test]
320 fn test_delete_at_end() {
321 let old = lines(&["a\n", "b\n", "c\n"]);
322 let new = lines(&["a\n", "b\n"]);
323
324 let result = diff(&old, &new);
325
326 assert_eq!(result.deletions(), 1);
327 assert_eq!(result.insertions(), 0);
328 }
329
330 #[test]
331 fn test_completely_different() {

Callers

nothing calls this directly

Calls 2

linesFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected