CheckContent verifies the content at a given cell of the terminal.
(t *testing.T, term MockTerm, x Col, y Row, s string)
| 96 | |
| 97 | // CheckContent verifies the content at a given cell of the terminal. |
| 98 | func CheckContent(t *testing.T, term MockTerm, x Col, y Row, s string) { |
| 99 | t.Helper() |
| 100 | if actual := string(term.GetCell(Coord{X: x, Y: y}).C); actual != s { |
| 101 | t.Errorf("bad content %d,%d (expected %q got %q)", x, y, s, actual) |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | // CheckAttrs verifies the attributes of a given cell. |
| 106 | func CheckAttrs(t *testing.T, term MockTerm, x Col, y Row, a Attr) { |
searching dependent graphs…