Start on implementing filtering support for Cursor::prev

This commit is contained in:
Antonio Scandurra
2022-03-15 15:13:23 +01:00
parent 7c6fe56347
commit 45ce503afd
5 changed files with 65 additions and 91 deletions
+3 -3
View File
@@ -614,7 +614,7 @@ mod tests {
let (size, _) = list.layout(constraint, &mut presenter.build_layout_context(false, cx));
assert_eq!(size, vec2f(100., 40.));
assert_eq!(
state.0.borrow().items.summary(),
state.0.borrow().items.summary().clone(),
ListItemSummary {
count: 3,
rendered_count: 3,
@@ -649,7 +649,7 @@ mod tests {
state.splice(1..2, 2);
state.splice(4..4, 1);
assert_eq!(
state.0.borrow().items.summary(),
state.0.borrow().items.summary().clone(),
ListItemSummary {
count: 5,
rendered_count: 2,
@@ -662,7 +662,7 @@ mod tests {
list.layout(constraint, &mut presenter.build_layout_context(false, cx));
assert_eq!(size, vec2f(100., 40.));
assert_eq!(
state.0.borrow().items.summary(),
state.0.borrow().items.summary().clone(),
ListItemSummary {
count: 5,
rendered_count: 5,