mirror of
https://github.com/gizak/termui.git
synced 2025-04-26 13:48:54 +08:00
adding failing test for [text] and no color info after
This commit is contained in:
parent
59f75021fe
commit
a5730c9067
@ -13,4 +13,8 @@ func TestParseStyles(t *testing.T) {
|
|||||||
t.Fatal("blue text fg is wrong")
|
t.Fatal("blue text fg is wrong")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cells = ParseStyles("[hi]", NewStyle(ColorWhite))
|
||||||
|
if len(cells) != 4 {
|
||||||
|
t.Fatal("missing closing ]")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user