Changeset 5839
- Timestamp:
- Dec 23, 2005, 2:32:41 PM (20 years ago)
- Location:
- trunk/psLib/test/imageops
- Files:
-
- 2 edited
-
tst_psImageStats.c (modified) (1 diff)
-
verified/tst_psImageStats.stderr (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; -
trunk/psLib/test/imageops/verified/tst_psImageStats.stderr
r5137 r5839 625 625 Can not operate on a NULL psImage. 626 626 <HOST>|E|psImageCountPixelMask (FILE:LINENO) 627 Invalid region. Lower boundary greater than upper boundary.628 <HOST>|E|psImageCountPixelMask (FILE:LINENO)629 psRegion input is outside of image boundary630 <HOST>|E|psImageCountPixelMask (FILE:LINENO)631 627 psRegion input contains 0 pixels 632 628
Note:
See TracChangeset
for help on using the changeset viewer.
