These hadn't been updated when we started the numbers at 1 instead of 0
VGTHZH5MWGH37ZSZWHDGYBOAXJAKELHAE6LLOZNMESPAN2PNXR6QC
55SCQOOHI4VRYNKPKDV5PVDXZIY4DG6URA2TMBLQGYLNI6YC7XHAC
UAFZU2RYB3K2HDVYMD7IIPBVOCSYBS7ZKUFSKBMGOC6HT6RR7PGAC
SXEYMYF7P4RZMZ46WPL4IZUTSQ2ATBWYZX7QNVMS3SGOYXYOHAGQC
FXEDPLRI7PXLDXV634ZA6D5Q3ZWG3ESTKJTMRPJ4MAHI7PKU3M6AC
Ok(&"a\n>>>>>>> 0\nx\ny\nz\n<<<<<<< 0\nf\n"[..])
Ok(&"a\n>>>>>>> 1\nx\ny\nz\n<<<<<<< 1\nf\n"[..])
Ok(&">>>>>>> 0\nx\ny\nz\n<<<<<<< 0\n"[..])
Ok(&">>>>>>> 1\nx\ny\nz\n<<<<<<< 1\n"[..])
Ok(&"a\n>>>>>>> 0\nx\n<<<<<<< 0\ny\n>>>>>>> 1\nz\n<<<<<<< 1\nf\n"[..])
Ok(&"a\n>>>>>>> 1\nx\n<<<<<<< 1\ny\n>>>>>>> 2\nz\n<<<<<<< 2\nf\n"[..])
// Bob edits and records
// Bob inserts xy between a and b
// Alice edits and records
// Alice inserts xy between a and b (same as Bob)
crate::pristine::debug( &*txn.read(), &*channel_alice.read(), std::fs::File::create("alice0.dot").unwrap(), )?;
crate::pristine::debug(
&*txn.read(),
&*channel_alice.read(),
std::fs::File::create("alice0.dot").unwrap(),
)?;
crate::pristine::debug( &*txn.read(), &*channel_alice.read(), std::fs::File::create("alice1.dot").unwrap(), )?;
std::fs::File::create("alice1.dot").unwrap(),
// Delete b and x, insert pre/post before/after conflict // markers (except the closing marker).
// Delete b and x, insert pre/post before/after conflict
// markers (except the closing marker).
debug!("{}", std::str::from_utf8(&buf).unwrap());
crate::pristine::debug( &*txn.read(), &*channel_alice.read(), std::fs::File::create("alice2.dot").unwrap(), )?; crate::pristine::debug( &*txn.read(), &*channel_bob.read(), std::fs::File::create("bob.dot").unwrap(), )?;
std::fs::File::create("alice2.dot").unwrap(),
&*channel_bob.read(),
std::fs::File::create("bob.dot").unwrap(),
assert_eq!(conflict, vec![">>>>>>> 0", "x", "<<<<<<< 0"]);
assert_eq!(conflict, vec![">>>>>>> 1", "x", "<<<<<<< 1"]);
assert_eq!(std::str::from_utf8(&buf_), Ok(">>>>>>> 0\nx\n<<<<<<< 0\n"));
assert_eq!(std::str::from_utf8(&buf_), Ok(">>>>>>> 1\nx\n<<<<<<< 1\n"));
assert_eq!(std::str::from_utf8(&buf2_), Ok(">>>>>>> 0\nx\n<<<<<<< 0\n"));
assert_eq!(std::str::from_utf8(&buf2_), Ok(">>>>>>> 1\nx\n<<<<<<< 1\n"));
Ok(">>>>>>> 0\nx\ny\nz\n<<<<<<< 0\n")
Ok(">>>>>>> 1\nx\ny\nz\n<<<<<<< 1\n")