From a5730c90679af10c5f42e6d5a35defd8f3947166 Mon Sep 17 00:00:00 2001 From: Andrew Arrow Date: Sat, 5 Nov 2022 11:56:04 -0700 Subject: [PATCH] adding failing test for [text] and no color info after --- style_parser_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/style_parser_test.go b/style_parser_test.go index 21587b2..d3e7ff6 100644 --- a/style_parser_test.go +++ b/style_parser_test.go @@ -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 ]") + } }