image: Add TestImageDispose

This commit is contained in:
Hajime Hoshi 2016-02-07 02:37:43 +09:00
parent 27f1a865aa
commit 84361878de

View File

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