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

Function test_completely_different

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

Source from the content-addressed store, hash-verified

329
330 #[test]
331 fn test_completely_different() {
332 let old = lines(&["a\n", "b\n", "c\n"]);
333 let new = lines(&["x\n", "y\n", "z\n"]);
334
335 let result = diff(&old, &new);
336
337 // All replaced
338 assert_eq!(result.deletions(), 3);
339 assert_eq!(result.insertions(), 3);
340 }
341
342 #[test]
343 fn test_operations_have_correct_positions() {

Callers

nothing calls this directly

Calls 2

linesFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected