File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1213,7 +1213,15 @@ def height(p):
1213
1213
def width (p ):
1214
1214
return int (p ._info ["pane_width" ])
1215
1215
1216
- assert height (main_horizontal_pane ) > height (panes [0 ])
1216
+ main_horizontal_pane_height = height (main_horizontal_pane )
1217
+ pane_heights = [height (pane ) for pane in panes ]
1218
+ # TODO: When libtmux has new pane formatters added, use that to detect top / bottom
1219
+ assert all (
1220
+ main_horizontal_pane_height != pane_height for pane_height in pane_heights
1221
+ ), "The top row should not be the same size as the bottom row (even though it can)"
1222
+ assert all (
1223
+ pane_heights [0 ] == pane_height for pane_height in pane_heights
1224
+ ), "The bottom row should be uniform height"
1217
1225
assert width (main_horizontal_pane ) > width (panes [0 ])
1218
1226
1219
1227
def is_almost_equal (x , y ):
You can’t perform that action at this time.
0 commit comments