files: add another test of a 5-way merge

Just to show that this case doesn't change in the next commit.
This commit is contained in:
Martin von Zweigbergk 2023-05-23 21:21:28 -07:00 committed by Martin von Zweigbergk
parent 1ec906b114
commit 61c1b9f4eb

View file

@ -430,5 +430,13 @@ mod tests {
adds: vec![b"c".to_vec(), b"d".to_vec(), b"e".to_vec()]
})])
);
// Two sides made the same change, third side made a different change
assert_eq!(
merge(&[b"a", b"b"], &[b"c", b"c", b"c"]),
MergeResult::Conflict(vec![MergeHunk::Conflict(ConflictHunk {
removes: vec![b"a".to_vec(), b"b".to_vec()],
adds: vec![b"c".to_vec(), b"c".to_vec(), b"c".to_vec()]
})])
);
}
}