Changeset 5839 for trunk/psLib/test/imageops/tst_psImageStats.c
- Timestamp:
- Dec 23, 2005, 2:32:41 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/imageops/tst_psImageStats.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/imageops/tst_psImageStats.c
r5137 r5839 765 765 return 100; 766 766 } 767 //Test for invalid region parameters (lower > upper)768 reg.y0 = 3;769 reg.y1 = 1;770 numPix2 = psImageCountPixelMask(in2, reg, 1);771 if (numPix2 != -1) {772 psError(PS_ERR_BAD_PARAMETER_VALUE, false,773 "psImageCountPixelMask failed to return -1 for invalid Region input.\n");774 return 7;775 }776 //Test for invalid region parameters (outside of image boundaries)777 reg.y0 = 0;778 reg.y1 = 10;779 numPix2 = psImageCountPixelMask(in2, reg, 1);780 if (numPix2 != -1) {781 psError(PS_ERR_BAD_PARAMETER_VALUE, false,782 "psImageCountPixelMask failed to return -1 for oversized Region input.\n");783 return 8;784 }785 767 //Test for invalid region (0 pixels, lower = upper) 786 768 reg.x0 = 1;
Note:
See TracChangeset
for help on using the changeset viewer.
