#[cfg(test)]
use diffmatchpatch::*;
#[test]
fn patch_obj() {
let p = Patch {
start1: 20,
start2: 21,
length1: 18,
length2: 17,
diffs: vec![
Diff::Equal("jump".into()),
Diff::Delete("s".into()),
Diff::Insert("ed".into()),
Diff::Equal(" over ".into()),
Diff::Delete("the".into()),
Diff::Insert("a".into()),
Diff::Equal("\nlaz".into()),
],
};
let strp = format!("{p}");
println!("{strp}");
assert_eq!("@@ -21,18 +22,17 @@\n jump\n-s\n+ed\n over \n-the\n+a\n %0Alaz\n", strp);
}