Backend: Add tests for pkg/colors/luminance.go
This commit is contained in:
parent
c5a371ed18
commit
825e629bb9
1 changed files with 12 additions and 0 deletions
12
pkg/colors/luminance_test.go
Normal file
12
pkg/colors/luminance_test.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package colors
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestLuminance_Hex(t *testing.T) {
|
||||
lum := Luminance(1)
|
||||
assert.Equal(t, "1", lum.Hex())
|
||||
|
||||
}
|
Loading…
Reference in a new issue