comparison UnitTestsSources/ImageProcessingTests.cpp @ 3260:345f86fd1ac3

fix (shame on me for not testing)
author Alain Mazy <alain@mazy.be>
date Tue, 19 Feb 2019 08:43:23 +0100
parents 6f652c7bfc85
children 9345710bbf12
comparison
equal deleted inserted replaced
3259:6f9398eb902d 3260:345f86fd1ac3
187 { 187 {
188 TestFixture::ImageTraits::SetFloatPixel(image, c, x, y); 188 TestFixture::ImageTraits::SetFloatPixel(image, c, x, y);
189 } 189 }
190 } 190 }
191 191
192 c = 0.0f;
192 for (unsigned int y = 0; y < image.GetHeight(); y++) 193 for (unsigned int y = 0; y < image.GetHeight(); y++)
193 { 194 {
194 for (unsigned int x = 0; x < image.GetWidth(); x++, c++) 195 for (unsigned int x = 0; x < image.GetWidth(); x++, c++)
195 { 196 {
196 ASSERT_FLOAT_EQ(c, TestFixture::ImageTraits::GetFloatPixel(image, x, y)); 197 ASSERT_FLOAT_EQ(c, TestFixture::ImageTraits::GetFloatPixel(image, x, y));