Skip to content

Commit

Permalink
More validation in mst dual-layer deletion test
Browse files Browse the repository at this point in the history
  • Loading branch information
DrChat committed Dec 27, 2024
1 parent f8e988e commit 43e2cb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions atrium-repo/src/mst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,8 @@ mod test {
Cid::from_str("bafyreie5737gdxlw5i64vzichcalba3z2v5n6icifvx5xytvske7mr3hpm").unwrap();
let root10 =
Cid::from_str("bafyreih7wfei65pxzhauoibu3ls7jgmkju4bspy4t2ha2qdjnzqvoy33ai").unwrap();
let root11 =
Cid::from_str("bafyreidjq27sf6pi5pq2relsiwis64k2jzu7yuxukovehvtc6cranqkxcy").unwrap();
let root12 =
Cid::from_str("bafyreiavxaxdz7o7rbvr3zg2liox2yww46t7g6hkehx4i4h3lwudly7dhy").unwrap();

Expand All @@ -1276,6 +1278,8 @@ mod test {
// remove A. This should remove the entire left side of the tree.
tree.delete("com.example.record/3jqfcqzm3ft2j").await.unwrap(); // A; level 0

assert_eq!(tree.root, root11);

// add it back and compare.
tree.add("com.example.record/3jqfcqzm3ft2j", value_cid()).await.unwrap(); // A; level 0

Expand Down

0 comments on commit 43e2cb6

Please sign in to comment.