From dffe323e735a8d3dc5065bfa3ffa57b2b6b65d9e Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Tue, 5 Dec 2023 11:31:17 +0100 Subject: [PATCH] Fix up test_lkayout_with_placeholder_text_and_blocks (uncomment last standing assert) --- crates/editor2/src/element.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/crates/editor2/src/element.rs b/crates/editor2/src/element.rs index a63593fcaf..5cfb72470f 100644 --- a/crates/editor2/src/element.rs +++ b/crates/editor2/src/element.rs @@ -3503,15 +3503,14 @@ mod tests { let size = state.position_map.size; assert_eq!(state.position_map.line_layouts.len(), 4); - // todo!() uncomment this assert - // assert_eq!( - // state - // .line_number_layouts - // .iter() - // .map(Option::is_some) - // .collect::>(), - // &[false, false, false, true] - // ); + assert_eq!( + state + .line_numbers + .iter() + .map(Option::is_some) + .collect::>(), + &[false, false, false, true] + ); // Don't panic. let bounds = Bounds::::new(Default::default(), size);