Fix up test_lkayout_with_placeholder_text_and_blocks (uncomment last standing assert)

This commit is contained in:
Piotr Osiewicz 2023-12-05 11:31:17 +01:00
parent 590238bcca
commit dffe323e73

View File

@ -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::<Vec<_>>(),
// &[false, false, false, true]
// );
assert_eq!(
state
.line_numbers
.iter()
.map(Option::is_some)
.collect::<Vec<_>>(),
&[false, false, false, true]
);
// Don't panic.
let bounds = Bounds::<Pixels>::new(Default::default(), size);