This commit is contained in:
Liam Stanley 2017-11-05 15:40:57 -05:00
parent 72fbf55553
commit a5f96c4e43

View File

@ -77,7 +77,7 @@ func TestFormat(t *testing.T) {
{name: "inside", args: args{text: "{re{c}d}test{c}"}, want: "{re\x03d}test\x03"},
{name: "nothing", args: args{text: "this is a test."}, want: "this is a test."},
{name: "fg and bg", args: args{text: "{red,yellow}test{c}"}, want: "\x0304,08test\x03"},
{name: "just bg", args: args{text: "{,yellow}test{c}"}, want: "\x0399,08test\x03"},
{name: "just bg", args: args{text: "{,yellow}test{c}"}, want: "test\x03"},
}
for _, tt := range tests {