diff options
Diffstat (limited to '')
-rw-r--r-- | ui/style_test.go | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ui/style_test.go b/ui/style_test.go index 4ba2e9d..d6846a7 100644 --- a/ui/style_test.go +++ b/ui/style_test.go @@ -35,62 +35,62 @@ func TestIRCString(t *testing.T) { assertIRCString(t, "\x02hello", StyledString{ string: "hello", styles: []rangedStyle{ - rangedStyle{Start: 0, Style: tcell.StyleDefault.Bold(true)}, + {Start: 0, Style: tcell.StyleDefault.Bold(true)}, }, }) assertIRCString(t, "\x035hello", StyledString{ string: "hello", styles: []rangedStyle{ - rangedStyle{Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown)}, + {Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown)}, }, }) assertIRCString(t, "\x0305hello", StyledString{ string: "hello", styles: []rangedStyle{ - rangedStyle{Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown)}, + {Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown)}, }, }) assertIRCString(t, "\x0305,0hello", StyledString{ string: "hello", styles: []rangedStyle{ - rangedStyle{Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown).Background(tcell.ColorWhite)}, + {Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown).Background(tcell.ColorWhite)}, }, }) assertIRCString(t, "\x035,00hello", StyledString{ string: "hello", styles: []rangedStyle{ - rangedStyle{Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown).Background(tcell.ColorWhite)}, + {Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown).Background(tcell.ColorWhite)}, }, }) assertIRCString(t, "\x0305,00hello", StyledString{ string: "hello", styles: []rangedStyle{ - rangedStyle{Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown).Background(tcell.ColorWhite)}, + {Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown).Background(tcell.ColorWhite)}, }, }) assertIRCString(t, "\x035,hello", StyledString{ string: ",hello", styles: []rangedStyle{ - rangedStyle{Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown)}, + {Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown)}, }, }) assertIRCString(t, "\x0305,hello", StyledString{ string: ",hello", styles: []rangedStyle{ - rangedStyle{Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown)}, + {Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown)}, }, }) assertIRCString(t, "\x03050hello", StyledString{ string: "0hello", styles: []rangedStyle{ - rangedStyle{Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown)}, + {Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown)}, }, }) assertIRCString(t, "\x0305,000hello", StyledString{ string: "0hello", styles: []rangedStyle{ - rangedStyle{Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown).Background(tcell.ColorWhite)}, + {Start: 0, Style: tcell.StyleDefault.Foreground(tcell.ColorBrown).Background(tcell.ColorWhite)}, }, }) } |