shareable: Bug fix: test failures

This commit is contained in:
Hajime Hoshi 2018-07-29 23:28:13 +09:00
parent b02b2de626
commit 81094da3a1

View File

@ -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)
}