(t *testing.T)
| 387 | } |
| 388 | |
| 389 | func TestGetCell(t *testing.T) { |
| 390 | b := makeBufferForTesting(80, 20) |
| 391 | writeRaw(b, []rune("Hello")...) |
| 392 | b.carriageReturn() |
| 393 | b.newLine() |
| 394 | |
| 395 | writeRaw(b, []rune("there")...) |
| 396 | b.carriageReturn() |
| 397 | b.newLine() |
| 398 | |
| 399 | writeRaw(b, []rune("something...")...) |
| 400 | cell := b.GetCell(8, 2) |
| 401 | require.NotNil(t, cell) |
| 402 | assert.Equal(t, 'g', cell.Rune().Rune) |
| 403 | } |
| 404 | |
| 405 | func TestGetCellWithHistory(t *testing.T) { |
| 406 | b := makeBufferForTesting(80, 2) |
nothing calls this directly
no test coverage detected