mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
Merge pull request #701 from peco/fix-staticcheck-sa4016
Remove no-op bitwise OR with zero in test
This commit is contained in:
commit
6fe3e4516d
|
|
@ -177,7 +177,7 @@ func TestParseSGR_MalformedExtendedColor(t *testing.T) {
|
|||
t.Run("well-formed truecolor fg still works", func(t *testing.T) {
|
||||
var fg, bg Attribute
|
||||
parseSGR("38;2;255;128;0", &fg, &bg)
|
||||
expected := Attribute((255<<16)|(128<<8)|0) | AttrTrueColor
|
||||
expected := Attribute((255<<16)|(128<<8)) | AttrTrueColor
|
||||
require.Equal(t, expected, fg)
|
||||
require.Equal(t, ColorDefault, bg)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue