Skip to content

Commit

Permalink
image/color: fix format typo in the tests.
Browse files Browse the repository at this point in the history
Change-Id: I6f79d201aa4e8c0e3be8d965f14ed36518536036
Reviewed-on: https://go-review.googlesource.com/12281
Reviewed-by: Rob Pike <[email protected]>
  • Loading branch information
nigeltao committed Jul 16, 2015
1 parent 2072fc3 commit 816222d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/image/color/ycbcr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 816222d

Please sign in to comment.