From 744fda5eecd83cc48f73cac34b696697c8ac14d4 Mon Sep 17 00:00:00 2001 From: sago35 Date: Mon, 10 Nov 2025 19:47:15 +0900 Subject: [PATCH] fix: correct logic error in image size checks in pixel's tests (Monochrome) --- pixel/image_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixel/image_test.go b/pixel/image_test.go index b0963b1..5636f3d 100644 --- a/pixel/image_test.go +++ b/pixel/image_test.go @@ -109,7 +109,7 @@ func TestImageRGB444BE(t *testing.T) { func TestImageMonochrome(t *testing.T) { image := pixel.NewImage[pixel.Monochrome](128, 64) - if width, height := image.Size(); width != 128 && height != 64 { + if width, height := image.Size(); width != 128 || height != 64 { t.Errorf("image.Size(): expected 128, 64 but got %d, %d", width, height) } for _, expected := range []color.RGBA{