diff options
| author | Nigel Tao <nigeltao@golang.org> | 2015-07-16 11:13:42 +1000 |
|---|---|---|
| committer | Nigel Tao <nigeltao@golang.org> | 2015-07-16 01:41:34 +0000 |
| commit | 816222d10ffc9317386da8a8cdffca14b32b562f (patch) | |
| tree | 3030a2c392c9947a25d5a4f85f9bd1e7ecf7db58 /src/image | |
| parent | 2072fc30611bb04206ec29889b29f2bcdb1eb44e (diff) | |
| download | go-816222d10ffc9317386da8a8cdffca14b32b562f.tar.xz | |
image/color: fix format typo in the tests.
Change-Id: I6f79d201aa4e8c0e3be8d965f14ed36518536036
Reviewed-on: https://go-review.googlesource.com/12281
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/image')
| -rw-r--r-- | src/image/color/ycbcr_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/image/color/ycbcr_test.go b/src/image/color/ycbcr_test.go index d64e38ef46..5da49d379a 100644 --- a/src/image/color/ycbcr_test.go +++ b/src/image/color/ycbcr_test.go @@ -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) } } } |
