1
0
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:
Andrew Arrow 2022-11-05 11:56:04 -07:00
parent 59f75021fe
commit a5730c9067

View File

@ -13,4 +13,8 @@ func TestParseStyles(t *testing.T) {
t.Fatal("blue text fg is wrong")
}
cells = ParseStyles("[hi]", NewStyle(ColorWhite))
if len(cells) != 4 {
t.Fatal("missing closing ]")
}
}