mirror of
https://github.com/gizak/termui.git
synced 2025-04-26 13:48:54 +08:00
index checks for test
This commit is contained in:
parent
291e9577ef
commit
f9eac67f00
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user