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

Function test_single_delete

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

Source from the content-addressed store, hash-verified

250
251 #[test]
252 fn test_single_delete() {
253 let old = lines(&["a\n", "b\n", "c\n"]);
254 let new = lines(&["a\n", "c\n"]);
255
256 let result = diff(&old, &new);
257
258 assert_eq!(result.deletions(), 1);
259 assert_eq!(result.insertions(), 0);
260 }
261
262 #[test]
263 fn test_replace() {

Callers

nothing calls this directly

Calls 2

linesFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected