Commit 816222d1 authored by Nigel Tao's avatar Nigel Tao

image/color: fix format typo in the tests.

Change-Id: I6f79d201aa4e8c0e3be8d965f14ed36518536036
Reviewed-on: https://go-review.googlesource.com/12281Reviewed-by: 's avatarRob Pike <r@golang.org>
parent 2072fc30
......@@ -68,7 +68,7 @@ func TestYCbCrToRGBConsistency(t *testing.T) {
func TestYCbCrGray(t *testing.T) {
for i := 0; i < 256; i++ {
if err := eq(YCbCr{uint8(i), 0x80, 0x80}, Gray{uint8(i)}); err != nil {
t.Errorf("i=0x%02d:\n%v", i, err)
t.Errorf("i=0x%02x:\n%v", i, err)
}
}
}
......@@ -117,7 +117,7 @@ func TestCMYKToRGBConsistency(t *testing.T) {
func TestCMYKGray(t *testing.T) {
for i := 0; i < 256; i++ {
if err := eq(CMYK{0x00, 0x00, 0x00, uint8(255 - i)}, Gray{uint8(i)}); err != nil {
t.Errorf("i=0x%02d:\n%v", i, err)
t.Errorf("i=0x%02x:\n%v", i, err)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment