Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix up test_lkayout_with_placeholder_text_and_blocks (uncomment last standing assert)

Piotr Osiewiczdffe323e735a
diff --git a/crates/editor2/src/element.rs b/crates/editor2/src/element.rs
index a63593fcaf4..5cfb72470ff 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::<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);