UAFZU2RYB3K2HDVYMD7IIPBVOCSYBS7ZKUFSKBMGOC6HT6RR7PGAC
FXEDPLRI7PXLDXV634ZA6D5Q3ZWG3ESTKJTMRPJ4MAHI7PKU3M6AC
SXEYMYF7P4RZMZ46WPL4IZUTSQ2ATBWYZX7QNVMS3SGOYXYOHAGQC
CCLLB7OIFNFYJZTG3UCI7536TOCWSCSXR67VELSB466R24WLJSDAC
7UPL3Y2A5QOBU6VIUHNWEFGSGQ5CMWGDGOVLRZ53UARXG3TDGLMAC
TIPZ7UXNIZ3UMIXDUP2M33FUP7LY3XM2NX424ZE4EO5V7CZTOGXQC
GHO6DWPILBBTL6CVZKERJBTFL3EY6ZT4YM4E5R4S6YPGVFKFHCVAC
6YMDOZIB5LVYLFIDGN2WNT5JTHEAMS4TFPVDEZ3OWXWOKJOC5QDAC
I52XSRUH5RVHQBFWVMAQPTUSPAJ4KNVID2RMI3UGCVKFLYUO6WZAC
WZVCLZKY34KQBQU6YBGJLQCDADBQ67LQVDNRVCMQVY3O3C3EIWSQC
ZXTHL45OYLOICXTXXEQ6AMNSLMQFZ6BFUJWMO6LZOSDK7ERROC5AC
let mut conflict: Vec<_> = std::str::from_utf8(&buf)?.lines().collect();
let re = regex::bytes::Regex::new(r#" \[[^\]]*\]"#).unwrap();
let buf_ = re.replace_all(&buf, &[][..]);
let mut conflict: Vec<_> = std::str::from_utf8(&buf_)?.lines().collect();
std::str::from_utf8(&buf),
Ok(
&"a\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\nx\ny\nz\n<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\nf\n"
[..]
)
std::str::from_utf8(&buf_),
Ok(&"a\n>>>>>>> 0\nx\ny\nz\n<<<<<<< 0\nf\n"[..])
std::str::from_utf8(&buf),
Ok(
&"a\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\nx\n<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\ny\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\nz\n<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\nf\n"
[..]
)
std::str::from_utf8(&buf_),
Ok(&"a\n>>>>>>> 0\nx\n<<<<<<< 0\ny\n>>>>>>> 1\nz\n<<<<<<< 1\nf\n"[..])
std::str::from_utf8(&buf),
Ok(&">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\nx\n<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\ny\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\nz\n<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"[..])
std::str::from_utf8(&buf_),
Ok(&">>>>>>> 0\nx\ny\nz\n<<<<<<< 0\n"[..])
let mut conflict: Vec<_> = std::str::from_utf8(&buf)?.lines().collect();
let re = regex::bytes::Regex::new(r#" \[[^\]]*\]"#).unwrap();
let buf_ = re.replace_all(&buf, &[][..]);
let mut conflict: Vec<_> = std::str::from_utf8(&buf_)?.lines().collect();
assert_eq!(std::str::from_utf8(&buf), std::str::from_utf8(&buf2));
let re = regex::bytes::Regex::new(r#"\[[^\]]*\]"#).unwrap();
let buf_ = re.replace_all(&buf, &[][..]);
let buf2_ = re.replace_all(&buf2, &[][..]);
assert_eq!(std::str::from_utf8(&buf), std::str::from_utf8(&buf2));
let re = regex::bytes::Regex::new(r#"\[[^\]]*\]"#).unwrap();
let buf_ = re.replace_all(&buf, &[][..]);
let buf2_ = re.replace_all(&buf2, &[][..]);
assert_eq!(std::str::from_utf8(&buf_), std::str::from_utf8(&buf2_));
(&mut conflict[2..5]).sort_unstable();
assert_eq!(
conflict,
vec![
"a",
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>",
"================================",
"x",
"y",
"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
]
);
conflict.sort_unstable();
assert_eq!(&conflict[3..], ["a", "x", "y",]);
assert_eq!(conflict[0], "<<<<<<< 1",);
let conflict: Vec<_> = std::str::from_utf8(buf)?.lines().collect();
assert_eq!(
conflict,
vec![
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>",
"x",
"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
]
);
let re = regex::bytes::Regex::new(r#" \[[^\]]*\]"#).unwrap();
let buf_ = re.replace_all(&buf, &[][..]);
let conflict: Vec<_> = std::str::from_utf8(&buf_)?.lines().collect();
assert_eq!(conflict, vec![">>>>>>> 0", "x", "<<<<<<< 0"]);
let buf: Vec<_> = std::str::from_utf8(&buf).unwrap().lines().collect();
let re = regex::bytes::Regex::new(r#" \[[^\]]*\]"#).unwrap();
let buf_ = re.replace_all(&buf, &[][..]);
let buf: Vec<_> = std::str::from_utf8(&buf_).unwrap().lines().collect();
let buf: Vec<_> = std::str::from_utf8(&buf).unwrap().lines().collect();
let re = regex::bytes::Regex::new(r#" \[[^\]]*\]"#).unwrap();
let buf_ = re.replace_all(&buf, &[][..]);
let buf: Vec<_> = std::str::from_utf8(&buf_).unwrap().lines().collect();
let mut lines: Vec<_> = std::str::from_utf8(&buf).unwrap().lines().collect();
let re = regex::bytes::Regex::new(r#"\[[^\]]*\]"#).unwrap();
let buf_ = re.replace_all(&buf, &[][..]);
let buf2_ = re.replace_all(&buf2, &[][..]);
let mut lines: Vec<_> = std::str::from_utf8(&buf_).unwrap().lines().collect();
let mut lines: Vec<_> = std::str::from_utf8(&buf).unwrap().lines().collect();
let re = regex::bytes::Regex::new(r#" \[[^\]]*\]"#).unwrap();
let buf_ = re.replace_all(&buf, &[][..]);
let buf2_ = re.replace_all(&buf2, &[][..]);
let mut lines: Vec<_> = std::str::from_utf8(&buf_).unwrap().lines().collect();
assert_eq!(
std::str::from_utf8(&buf),
Ok(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\nx\n<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n")
);
let re = regex::bytes::Regex::new(r#" \[[^\]]*\]"#).unwrap();
let buf_ = re.replace_all(&buf, &[][..]);
assert_eq!(std::str::from_utf8(&buf_), Ok(">>>>>>> 0\nx\n<<<<<<< 0\n"));