mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
shareable: Bug fix: test failures
This commit is contained in:
parent
b02b2de626
commit
81094da3a1
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user