Fix several randomized test failures with the new git status implementation
This commit is contained in:
parent
a2d58068a7
commit
34e134fafb
4 changed files with 52 additions and 17 deletions
|
@ -480,6 +480,11 @@ impl<T: Item> SumTree<T> {
|
|||
} => child_trees.last().unwrap().rightmost_leaf(),
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
pub fn _debug_entries(&self) -> Vec<&T> {
|
||||
self.iter().collect::<Vec<_>>()
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Item + PartialEq> PartialEq for SumTree<T> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue