mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +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)
|
||||
|
Loading…
Reference in New Issue
Block a user