Mercurial > hg > orthanc
diff UnitTestsSources/Png.cpp @ 711:8f62e8d5a384
test main dicom tags
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Feb 2014 15:51:10 +0100 |
parents | c87a1d529e13 |
children | 37adac56017a |
line wrap: on
line diff
--- a/UnitTestsSources/Png.cpp Thu Feb 13 15:11:11 2014 +0100 +++ b/UnitTestsSources/Png.cpp Thu Feb 13 15:51:10 2014 +0100 @@ -120,6 +120,7 @@ for (int y = 0; y < height; y++) { uint16_t *p = reinterpret_cast<uint16_t*>((uint8_t*) r.GetBuffer() + y * r.GetPitch()); + ASSERT_EQ(p, r.GetBuffer(y)); for (int x = 0; x < width; x++, p++, v++) { ASSERT_EQ(*p, v); @@ -142,6 +143,7 @@ for (int y = 0; y < height; y++) { uint16_t *p = reinterpret_cast<uint16_t*>((uint8_t*) r2.GetBuffer() + y * r2.GetPitch()); + ASSERT_EQ(p, r2.GetBuffer(y)); for (int x = 0; x < width; x++, p++, v++) { ASSERT_EQ(*p, v);