mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 12:05:29 -04:00
#660: Make sure region is within bounds of new test image...
This commit is contained in:
parent
499b3ef120
commit
b400b6b157
@ -142,11 +142,12 @@ public class PCXImageReaderTest extends ImageReaderAbstractTest<PCXImageReader>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
@Test
|
@Test
|
||||||
public void testReadWithSourceRegionParamEqualImage() throws IOException {
|
public void testReadWithSourceRegionParamEqualImage() throws IOException {
|
||||||
TestData data = getTestData().get(1);
|
TestData data = getTestData().get(0);
|
||||||
assertReadWithSourceRegionParamEqualImage(new Rectangle(200, 0, 4, 4), data, 0);
|
assertReadWithSourceRegionParamEqualImage(new Rectangle(66, 0, 4, 4), data, 0);
|
||||||
assertReadWithSourceRegionParamEqualImage(new Rectangle(100, 100, 4, 4), data, 0);
|
assertReadWithSourceRegionParamEqualImage(new Rectangle(32, 20, 4, 4), data, 0);
|
||||||
assertReadWithSourceRegionParamEqualImage(new Rectangle(0, 200, 4, 4), data, 0);
|
assertReadWithSourceRegionParamEqualImage(new Rectangle(0, 42, 4, 4), data, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user