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

Function test_single_insert

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

Source from the content-addressed store, hash-verified

239
240 #[test]
241 fn test_single_insert() {
242 let old = lines(&["a\n", "c\n"]);
243 let new = lines(&["a\n", "b\n", "c\n"]);
244
245 let result = diff(&old, &new);
246
247 assert_eq!(result.insertions(), 1);
248 assert_eq!(result.deletions(), 0);
249 }
250
251 #[test]
252 fn test_single_delete() {

Callers

nothing calls this directly

Calls 2

linesFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected