test: updated test cases

This commit is contained in:
esimov
2022-10-21 15:38:52 +03:00
parent c5158d3ec7
commit b2c451147d
3 changed files with 30 additions and 32 deletions

View File

@@ -6,13 +6,8 @@ import (
"testing"
)
const (
ImgWidth = 10
ImgHeight = 10
)
func TestImage_GrayscaleMode(t *testing.T) {
img := image.NewRGBA(image.Rect(0, 0, ImgWidth, ImgHeight))
img := image.NewRGBA(image.Rect(0, 0, imgWidth, imgHeight))
for i := 0; i < img.Bounds().Dx(); i++ {
for j := 0; j < img.Bounds().Dy(); j++ {
img.Set(i, j, color.RGBA{177, 177, 177, 255})