Add missing test util method to bottombar
@@ -55,3 +55,10 @@ func TestBottomBar(t *testing.T) {
bottomBar.SetRect(0, 0, width, 0)
bottomBar.Draw(simScreen)
}
+
+func expectCell(expected rune, column, row int, screen tcell.SimulationScreen, t *testing.T) {
+ cell, _, _, _ := screen.GetContent(column, row)
+ if cell != expected {
+ t.Errorf("Cell missmatch. Was '%c' instead of '%c'.", cell, expected)
+ }
+}
