mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
image: Add TestImageDispose
This commit is contained in:
parent
27f1a865aa
commit
84361878de
@ -227,4 +227,15 @@ func TestReplacePixels(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestImageDispose(t *testing.T) {
|
||||||
|
img, err := NewImage(16, 16, FilterNearest)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if err := img.Dispose(); err != nil {
|
||||||
|
t.Errorf("img.Dipose() returns error: %v", err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Add more tests (e.g. DrawImage with color matrix)
|
// TODO: Add more tests (e.g. DrawImage with color matrix)
|
||||||
|
Loading…
Reference in New Issue
Block a user