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

Function test_common_affixes_none

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

Source from the content-addressed store, hash-verified

874
875 #[test]
876 fn test_common_affixes_none() {
877 let old = vec![1, 2, 3];
878 let new = vec![4, 5, 6];
879 let (prefix, suffix) = common_affixes(&old, &new);
880 assert_eq!(prefix, 0);
881 assert_eq!(suffix, 0);
882 }
883
884 /// Test that modifying a line and inserting a copy of the original
885 /// 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