Skip to content

Commit 744fda5

Browse files
sago35deadprogram
authored andcommitted
fix: correct logic error in image size checks in pixel's tests (Monochrome)
1 parent 027c912 commit 744fda5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pixel/image_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func TestImageRGB444BE(t *testing.T) {
109109

110110
func TestImageMonochrome(t *testing.T) {
111111
image := pixel.NewImage[pixel.Monochrome](128, 64)
112-
if width, height := image.Size(); width != 128 && height != 64 {
112+
if width, height := image.Size(); width != 128 || height != 64 {
113113
t.Errorf("image.Size(): expected 128, 64 but got %d, %d", width, height)
114114
}
115115
for _, expected := range []color.RGBA{

0 commit comments

Comments
 (0)