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

Function test_single_insert

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

Source from the content-addressed store, hash-verified

422
423 #[test]
424 fn test_single_insert() {
425 let old = lines(&["a\n", "c\n"]);
426 let new = lines(&["a\n", "b\n", "c\n"]);
427
428 let result = diff(&old, &new);
429
430 assert_eq!(result.insertions(), 1);
431 assert_eq!(result.deletions(), 0);
432 }
433
434 #[test]
435 fn test_single_delete() {

Callers

nothing calls this directly

Calls 2

linesFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected