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

Function test_right_deletes_token

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

Source from the content-addressed store, hash-verified

550
551 #[test]
552 fn test_right_deletes_token() {
553 let base = tokenize(b"a b c");
554 let left = tokenize(b"a b c");
555 let right = tokenize(b"a c");
556 let result = three_way_merge(&base, &left, &right);
557 assert!(matches!(result, ThreeWayResult::Merged(_)));
558 assert_eq!(merged_string(&result).unwrap(), "a c");
559 }
560
561 // ---- Insertion cases --------------------------------------------------
562

Callers

nothing calls this directly

Calls 2

three_way_mergeFunction · 0.85
tokenizeFunction · 0.70

Tested by

no test coverage detected