Skip to content

Commit 816222d

Browse files
committed
image/color: fix format typo in the tests.
Change-Id: I6f79d201aa4e8c0e3be8d965f14ed36518536036 Reviewed-on: https://go-review.googlesource.com/12281 Reviewed-by: Rob Pike <[email protected]>
1 parent 2072fc3 commit 816222d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/image/color/ycbcr_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func TestYCbCrToRGBConsistency(t *testing.T) {
6868
func TestYCbCrGray(t *testing.T) {
6969
for i := 0; i < 256; i++ {
7070
if err := eq(YCbCr{uint8(i), 0x80, 0x80}, Gray{uint8(i)}); err != nil {
71-
t.Errorf("i=0x%02d:\n%v", i, err)
71+
t.Errorf("i=0x%02x:\n%v", i, err)
7272
}
7373
}
7474
}
@@ -117,7 +117,7 @@ func TestCMYKToRGBConsistency(t *testing.T) {
117117
func TestCMYKGray(t *testing.T) {
118118
for i := 0; i < 256; i++ {
119119
if err := eq(CMYK{0x00, 0x00, 0x00, uint8(255 - i)}, Gray{uint8(i)}); err != nil {
120-
t.Errorf("i=0x%02d:\n%v", i, err)
120+
t.Errorf("i=0x%02x:\n%v", i, err)
121121
}
122122
}
123123
}

0 commit comments

Comments
 (0)