From 0abe40790bdcdd6eb30e71bef64a133bc0645803 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 6 Feb 2016 15:34:56 +0900 Subject: [PATCH] test: Refactoring --- image_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image_test.go b/image_test.go index 40568bb97..facf83709 100644 --- a/image_test.go +++ b/image_test.go @@ -168,7 +168,7 @@ func TestImageDotByDotInversion(t *testing.T) { return } op := &DrawImageOptions{} - op.GeoM.Rotate(2 * math.Pi / 2) + op.GeoM.Rotate(math.Pi) op.GeoM.Translate(float64(w), float64(h)) img1.DrawImage(img0, op) @@ -177,7 +177,7 @@ func TestImageDotByDotInversion(t *testing.T) { c0 := img0.At(i, j).(color.RGBA) c1 := img1.At(w-i-1, h-j-1).(color.RGBA) if c0 != c1 { - t.Errorf("img0.At(%[1]d, %[2]d) should equal to img1.At(%[1]d, %[2]d) but not: %[3]v vs %[4]v", i, j, c0, c1) + t.Errorf("img0.At(%[1]d, %[2]d) should equal to img1.At(%[3]d, %[4]d) but not: %[5]v vs %[6]v", i, j, w-i-1, h-j-1, c0, c1) } } }