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

Function test_common_affixes_none

atomic-core/src/diff/mod.rs:815–821  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

813
814 #[test]
815 fn test_common_affixes_none() {
816 let old = vec![1, 2, 3];
817 let new = vec![4, 5, 6];
818 let (prefix, suffix) = common_affixes(&old, &new);
819 assert_eq!(prefix, 0);
820 assert_eq!(suffix, 0);
821 }
822
823 /// Test that modifying a line and inserting a copy of the original
824 /// is detected as a Replace + Insert, not just an Insert.

Callers

nothing calls this directly

Calls 1

common_affixesFunction · 0.85

Tested by

no test coverage detected