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

Function test_left_inserts_token

atomic-core/src/merge/three_way.rs:564–571  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

562
563 #[test]
564 fn test_left_inserts_token() {
565 let base = tokenize(b"a c");
566 let left = tokenize(b"a b c");
567 let right = tokenize(b"a c");
568 let result = three_way_merge(&base, &left, &right);
569 assert!(matches!(result, ThreeWayResult::Merged(_)));
570 assert_eq!(merged_string(&result).unwrap(), "a b c");
571 }
572
573 // ---- Code-like content ------------------------------------------------
574

Callers

nothing calls this directly

Calls 2

tokenizeFunction · 0.85
three_way_mergeFunction · 0.85

Tested by

no test coverage detected