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

Function test_common_affixes

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

Source from the content-addressed store, hash-verified

795
796 #[test]
797 fn test_common_affixes() {
798 let old = vec![1, 2, 3, 4, 5];
799 let new = vec![1, 2, 9, 4, 5];
800 let (prefix, suffix) = common_affixes(&old, &new);
801 assert_eq!(prefix, 2);
802 assert_eq!(suffix, 2);
803 }
804
805 #[test]
806 fn test_common_affixes_all_equal() {

Callers

nothing calls this directly

Calls 1

common_affixesFunction · 0.85

Tested by

no test coverage detected