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

Function test_insert_at_end

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

Source from the content-addressed store, hash-verified

296
297 #[test]
298 fn test_insert_at_end() {
299 let old = lines(&["a\n", "b\n"]);
300 let new = lines(&["a\n", "b\n", "c\n"]);
301
302 let result = diff(&old, &new);
303
304 assert_eq!(result.insertions(), 1);
305 assert_eq!(result.deletions(), 0);
306 }
307
308 #[test]
309 fn test_delete_at_start() {

Callers

nothing calls this directly

Calls 2

linesFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected