1
0
mirror of https://github.com/gizak/termui.git synced 2025-04-24 13:48:50 +08:00

index checks for test

This commit is contained in:
Andrew Arrow 2022-11-08 09:04:17 -08:00
parent 291e9577ef
commit f9eac67f00

View File

@ -11,6 +11,15 @@ func TestFindStylePositions(t *testing.T) {
if len(items) != 3 {
t.Fatal("wrong length", len(items))
}
if items[0] != 10 {
t.Fatal("wrong index", items[0])
}
if items[1] != 38 {
t.Fatal("wrong index", items[1])
}
if items[2] != 67 {
t.Fatal("wrong index", items[2])
}
}
func TestBreakByStylesComplex(t *testing.T) {