forked from mirrors/jj
conflicts: add test for materializing modify/delete conflict
This commit is contained in:
parent
dfcc7a9cee
commit
e1d71c3713
1 changed files with 15 additions and 0 deletions
|
@ -191,6 +191,21 @@ line 5
|
|||
line 5
|
||||
"###
|
||||
);
|
||||
|
||||
// modify/delete conflict at the file level
|
||||
let conflict = Conflict {
|
||||
removes: vec![file_conflict_part(&base_id)],
|
||||
adds: vec![file_conflict_part(&modified_id)],
|
||||
};
|
||||
// TODO: THis should have context around the conflict (#1244)
|
||||
insta::assert_snapshot!(&materialize_conflict_string(store, &path, &conflict), @r###"
|
||||
<<<<<<<
|
||||
%%%%%%%
|
||||
-line 3
|
||||
+modified
|
||||
>>>>>>>
|
||||
"###
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue