]> Cypherpunks repositories - gostls13.git/commitdiff
image/color: fix format typo in the tests.
authorNigel Tao <nigeltao@golang.org>
Thu, 16 Jul 2015 01:13:42 +0000 (11:13 +1000)
committerNigel Tao <nigeltao@golang.org>
Thu, 16 Jul 2015 01:41:34 +0000 (01:41 +0000)
Change-Id: I6f79d201aa4e8c0e3be8d965f14ed36518536036
Reviewed-on: https://go-review.googlesource.com/12281
Reviewed-by: Rob Pike <r@golang.org>
src/image/color/ycbcr_test.go

index d64e38ef460931be66088c20bc74849486f1f1db..5da49d379aa799d04f0ed8a1ba480f0cbab536ec 100644 (file)
@@ -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)
                }
        }
 }