mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-29 23:57:51 +00:00
conflicts: demo failed parse of markers with CRLF
This commit is contained in:
parent
ffe5519fd0
commit
ee7f829d4c
1 changed files with 23 additions and 0 deletions
|
@ -725,6 +725,29 @@ fn test_parse_conflict_multi_way() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_parse_conflict_crlf_markers() {
|
||||||
|
// Conflict markers aren't recognized due to CRLF
|
||||||
|
assert_eq!(
|
||||||
|
parse_conflict(
|
||||||
|
indoc! {b"
|
||||||
|
line 1\r
|
||||||
|
<<<<<<<\r
|
||||||
|
+++++++\r
|
||||||
|
left\r
|
||||||
|
-------\r
|
||||||
|
base\r
|
||||||
|
+++++++\r
|
||||||
|
right\r
|
||||||
|
>>>>>>>\r
|
||||||
|
line 5\r
|
||||||
|
"},
|
||||||
|
2
|
||||||
|
),
|
||||||
|
None
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_parse_conflict_wrong_arity() {
|
fn test_parse_conflict_wrong_arity() {
|
||||||
// Valid conflict marker but it has fewer sides than the caller expected
|
// Valid conflict marker but it has fewer sides than the caller expected
|
||||||
|
|
Loading…
Reference in a new issue