diff --git a/colors_test.go b/colors_test.go index 4bfc170..e1b3bdb 100644 --- a/colors_test.go +++ b/colors_test.go @@ -266,8 +266,8 @@ func BenchmarkFastLinearToColor(bench *testing.B) { bench_result = c.R + c.G + c.B } -/// XYZ /// -/////////// +// / XYZ /// +// ///////// func TestXyzCreation(t *testing.T) { for i, tt := range vals { c := Xyz(tt.xyz[0], tt.xyz[1], tt.xyz[2]) @@ -286,8 +286,8 @@ func TestXyzConversion(t *testing.T) { } } -/// xyY /// -/////////// +// / xyY /// +// ///////// func TestXyyCreation(t *testing.T) { for i, tt := range vals { c := Xyy(tt.xyy[0], tt.xyy[1], tt.xyy[2]) @@ -306,8 +306,8 @@ func TestXyyConversion(t *testing.T) { } } -/// L*a*b* /// -////////////// +// / L*a*b* /// +// //////////// func TestLabCreation(t *testing.T) { for i, tt := range vals { c := Lab(tt.lab[0], tt.lab[1], tt.lab[2]) @@ -344,8 +344,8 @@ func TestLabWhiteRefConversion(t *testing.T) { } } -/// L*u*v* /// -////////////// +// / L*u*v* /// +// //////////// func TestLuvCreation(t *testing.T) { for i, tt := range vals { c := Luv(tt.luv[0], tt.luv[1], tt.luv[2]) @@ -382,8 +382,8 @@ func TestLuvWhiteRefConversion(t *testing.T) { } } -/// HCL /// -/////////// +// / HCL /// +// ///////// // CIE-L*a*b* in polar coordinates. func TestHclCreation(t *testing.T) { for i, tt := range vals { diff --git a/hsluv.go b/hsluv.go index d19fb64..3adadee 100644 --- a/hsluv.go +++ b/hsluv.go @@ -11,7 +11,8 @@ import "math" // comparing to the test values, this modified white reference is used internally. // // See this GitHub thread for details on these values: -// https://github.com/hsluv/hsluv/issues/79 +// +// https://github.com/hsluv/hsluv/issues/79 var hSLuvD65 = [3]float64{0.95045592705167, 1.0, 1.089057750759878} func LuvLChToHSLuv(l, c, h float64) (float64, float64, float64) { diff --git a/sort_test.go b/sort_test.go index c8b88a8..d32b209 100644 --- a/sort_test.go +++ b/sort_test.go @@ -14,12 +14,12 @@ func TestSortSimple(t *testing.T) { // Ensure the output matches what we expected. exp := []Color{ - Color{R: 0.25, G: 0.0, B: 0}, - Color{R: 0.50, G: 0.0, B: 0}, - Color{R: 0.75, G: 0.0, B: 0}, - Color{R: 0.0, G: 0.0, B: 0.25}, - Color{R: 0.0, G: 0.0, B: 0.50}, - Color{R: 0.0, G: 0.0, B: 0.75}, + {R: 0.25, G: 0.0, B: 0}, + {R: 0.50, G: 0.0, B: 0}, + {R: 0.75, G: 0.0, B: 0}, + {R: 0.0, G: 0.0, B: 0.25}, + {R: 0.0, G: 0.0, B: 0.50}, + {R: 0.0, G: 0.0, B: 0.75}, } for i, e := range exp { if out[i] != e {