test: update snapshot test

This commit is contained in:
Zixuan Chen 2023-07-12 21:35:06 +08:00
parent d3f921bae0
commit 7cb6691cef

View file

@ -328,7 +328,9 @@ mod test {
}, },
ListOp::Delete(DeleteSpan::new(0, 3)), ListOp::Delete(DeleteSpan::new(0, 3)),
]; ];
let list_op_buf = vec![2, 0, 2, 0, 0, 1, 0, 6]; // let vec = postcard::to_allocvec(&list_op);
// dbg!(&vec);
let list_op_buf = vec![2, 0, 3, 0, 0, 1, 0, 6];
assert_eq!( assert_eq!(
postcard::from_bytes::<Vec<ListOp>>(&list_op_buf).unwrap(), postcard::from_bytes::<Vec<ListOp>>(&list_op_buf).unwrap(),
list_op list_op