Skip to content

Commit

Permalink
docs: Update README with better tests 📚
Browse files Browse the repository at this point in the history
  • Loading branch information
kdheepak committed Jan 9, 2024
1 parent 131b9ec commit 8b32f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ use ratatui_macros::{vertical, horizontal};
use ratatui::prelude::Rect;

let area = Rect { x: 0, y: 0, width: 10, height: 10 };

let vertical_layout = vertical![==100%, >=3];
let [main, bottom] = vertical_layout.split(area).to_vec().try_into().unwrap();
assert_eq!(bottom.height, 3);

let area = Rect { x: 0, y: 0, width: 10, height: 10 };
let horizontal_layout = horizontal![==100%, >=3];
let [main, right] = horizontal_layout.split(area).to_vec().try_into().unwrap();
assert_eq!(right.width, 3);
Expand Down

0 comments on commit 8b32f82

Please sign in to comment.