Skip to content

Commit

Permalink
address arvid's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-o-how committed Feb 11, 2025
1 parent 144b4dd commit 76bc1b4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/serde/de_br.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ mod tests {
let test_val = traverse_path_with_vec(&mut a, &[0b1], &mut list).unwrap();
assert!(node_eq(&a, test_val, list_node));
// check cache has been created
assert!(list[0].1.is_some());
assert!(list[1].1.is_some());
assert!(node_eq(&a, list[0].1.unwrap(), list_node_part));
assert!(node_eq(&a, list[1].1.unwrap(), list_node));
// // do it again with caches present
let test_val = traverse_path_with_vec(&mut a, &[0b1], &mut list).unwrap();
assert!(node_eq(&a, test_val, list_node));
Expand All @@ -377,6 +377,10 @@ mod tests {
traverse_path_with_vec(&mut a, &[0b1], &mut list).unwrap(),
list_node
);
assert_eq!(
traverse_path_with_vec(&mut a, &[0b11], &mut list).unwrap(),
list_node_part
);
assert_eq!(
traverse_path_with_vec(&mut a, &[0b10], &mut list).unwrap(),
n2
Expand Down

0 comments on commit 76bc1b4

Please sign in to comment.