photoprism/pkg/colors/luminance_test.go

13 lines
173 B
Go
Raw Normal View History

package colors
import (
"testing"
2020-11-21 18:08:41 +01:00
"github.com/stretchr/testify/assert"
)
func TestLuminance_Hex(t *testing.T) {
lum := Luminance(1)
assert.Equal(t, "1", lum.Hex())
}