mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-18 02:04:19 +00:00
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:
parent
1ec906b114
commit
61c1b9f4eb
1 changed files with 8 additions and 0 deletions
|
@ -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()]
|
||||
})])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue