From 81094da3a151c94643a0de60a5deaa1897a6924b Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 29 Jul 2018 23:28:13 +0900 Subject: [PATCH] shareable: Bug fix: test failures --- internal/shareable/shareable_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/shareable/shareable_test.go b/internal/shareable/shareable_test.go index e05813e15..b39c99116 100644 --- a/internal/shareable/shareable_test.go +++ b/internal/shareable/shareable_test.go @@ -170,7 +170,7 @@ func TestReshared(t *testing.T) { for j := 0; j < size; j++ { for i := 0; i < size; i++ { want := color.RGBA{byte(i + j), byte(i + j), byte(i + j), byte(i + j)} - got := img1.At(i, j).(color.RGBA) + got := img1.At(i, j) if got != want { t.Errorf("got: %v, want: %v", got, want) } @@ -186,7 +186,7 @@ func TestReshared(t *testing.T) { for j := 0; j < size; j++ { for i := 0; i < size; i++ { want := color.RGBA{byte(i + j), byte(i + j), byte(i + j), byte(i + j)} - got := img1.At(i, j).(color.RGBA) + got := img1.At(i, j) if got != want { t.Errorf("got: %v, want: %v", got, want) }