Skip to content

Commit

Permalink
test: provide assertion message
Browse files Browse the repository at this point in the history
Its more clear what the assert is for when a message is given
  • Loading branch information
EdJoPaTo committed Nov 22, 2023
1 parent 46c8307 commit 291044e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interactive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ impl App {

let area = f.size();
let Rect { width, height, .. } = area;
debug_assert_eq!(area.x, 0);
debug_assert_eq!(area.y, 0);
debug_assert_eq!(area.x, 0, "area should fill the whole space");
debug_assert_eq!(area.y, 0, "area should fill the whole space");

let header_area = Rect {
height: HEADER_HEIGHT,
Expand Down

0 comments on commit 291044e

Please sign in to comment.