mirror of https://github.com/mum4k/termdash.git
Add missing test coverage for negative MaxTextCells.
This commit is contained in:
parent
4238ac6f76
commit
09d8a5b0d9
|
@ -54,6 +54,17 @@ func TestTextDraws(t *testing.T) {
|
|||
},
|
||||
wantErr: true,
|
||||
},
|
||||
{
|
||||
desc: "fails when MaxTextCells is negative",
|
||||
opts: []Option{
|
||||
MaxTextCells(-1),
|
||||
},
|
||||
canvas: image.Rect(0, 0, 1, 1),
|
||||
want: func(size image.Point) *faketerm.Terminal {
|
||||
return faketerm.MustNew(size)
|
||||
},
|
||||
wantErr: true,
|
||||
},
|
||||
{
|
||||
desc: "fails when scroll mouse buttons aren't unique",
|
||||
opts: []Option{
|
||||
|
|
Loading…
Reference in New Issue