You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
255 B
16 lines
255 B
package huecolor_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.aiterp.net/lucifer/lucifer/internal/huecolor"
|
|
)
|
|
|
|
func BenchmarkConvert(b *testing.B) {
|
|
for n := 0; n < b.N; n++ {
|
|
x, y := huecolor.ConvertXY(0.96, 0.04, 0.07)
|
|
if x < 0 && y < 0 {
|
|
b.Fail()
|
|
}
|
|
}
|
|
}
|