mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +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 j := 0; j < size; j++ {
|
||||||
for i := 0; i < size; i++ {
|
for i := 0; i < size; i++ {
|
||||||
want := color.RGBA{byte(i + j), byte(i + j), byte(i + j), byte(i + j)}
|
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 {
|
if got != want {
|
||||||
t.Errorf("got: %v, want: %v", 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 j := 0; j < size; j++ {
|
||||||
for i := 0; i < size; i++ {
|
for i := 0; i < size; i++ {
|
||||||
want := color.RGBA{byte(i + j), byte(i + j), byte(i + j), byte(i + j)}
|
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 {
|
if got != want {
|
||||||
t.Errorf("got: %v, want: %v", got, want)
|
t.Errorf("got: %v, want: %v", got, want)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user