Index: /trunk/psLib/test/image/tst_psImageExtraction.c
===================================================================
--- /trunk/psLib/test/image/tst_psImageExtraction.c	(revision 1404)
+++ /trunk/psLib/test/image/tst_psImageExtraction.c	(revision 1405)
@@ -6,6 +6,6 @@
 *  @author Robert DeSonia, MHPCC
 *
-*  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-08-06 21:50:14 $
+*  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-08-06 22:29:11 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -93,10 +93,12 @@
         if (DIRECTION == PS_CUT_X_POS || DIRECTION == PS_CUT_X_NEG) { \
             if (positions->data.U32[i] != c/10+TRUTHPIX_X) { \
-                psError(__func__,"Improper postions result @ %d.",i); \
+                psError(__func__,"Improper positions (%d vs %d) result @ %d.", \
+                        positions->data.U32[i],c/10+TRUTHPIX_X,i); \
                 return TESTNUM*4+4; \
             } \
         } else { \
             if (positions->data.U32[i] != r/10+TRUTHPIX_Y) { \
-                psError(__func__,"Improper postions result @ %d.",i); \
+                psError(__func__,"Improper positions (%d vs %d) result @ %d.", \
+                        positions->data.U32[i],r/10+TRUTHPIX_Y,i); \
                 return TESTNUM*4+4; \
             } \
@@ -119,5 +121,5 @@
     PSIMAGESLICE_TEST1( 1, n, PS_CUT_X_POS, 1, 0, n / 2, 8 );
     PSIMAGESLICE_TEST1( 1, n, PS_CUT_X_NEG, 1, 0, n / 2, 9 );
-    PSIMAGESLICE_TEST1( 1, n, PS_CUT_Y_POS, n, 0, n - 1 - i, 10 );
+    PSIMAGESLICE_TEST1( 1, n, PS_CUT_Y_POS, n, 0, i, 10 );
     PSIMAGESLICE_TEST1( 1, n, PS_CUT_Y_NEG, n, 0, n - 1 - i, 11 );
 
Index: /trunk/psLib/test/image/verified/tst_psImageExtraction.stderr
===================================================================
--- /trunk/psLib/test/image/verified/tst_psImageExtraction.stderr	(revision 1404)
+++ /trunk/psLib/test/image/verified/tst_psImageExtraction.stderr	(revision 1405)
@@ -5,22 +5,22 @@
 \**********************************************************************************/
 
- <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
- <DATE> <TIME> |<HOST>|E|   psImageSlice|Input image can not be NULL.
- <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
- <DATE> <TIME> |<HOST>|E|   psImageSlice|The stat options didn't specify a single supported statistic type.
- <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
- <DATE> <TIME> |<HOST>|E|   psImageSlice|Invalid direction flag (5)
- <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
- <DATE> <TIME> |<HOST>|E|   psImageSlice|The specified region contains no data (0x0)
- <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
- <DATE> <TIME> |<HOST>|E|   psImageSlice|The specified image region (2001,100 to 2001,100) is outside of image area (0,0 to 1999,999).
- <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
- <DATE> <TIME> |<HOST>|E|   psImageSlice|The specified image region (200,1001 to 200,1001) is outside of image area (0,0 to 1999,999).
- <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
- <DATE> <TIME> |<HOST>|E|   psImageSlice|The specified image region (200,100 to 2199,100) is outside of image area (0,0 to 1999,999).
- <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
- <DATE> <TIME> |<HOST>|E|   psImageSlice|The specified image region (200,100 to 200,1099) is outside of image area (0,0 to 1999,999).
- <DATE> <TIME> |<HOST>|I| testImageSlice|Following should be an error.
- <DATE> <TIME> |<HOST>|E|   psImageSlice|The stat options didn't specify a single supported statistic type.
+<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
+<DATE><TIME>|<HOST>|E|   psImageSlice|Input image can not be NULL.
+<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
+<DATE><TIME>|<HOST>|E|   psImageSlice|The stat options didn't specify a single supported statistic type.
+<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
+<DATE><TIME>|<HOST>|E|   psImageSlice|Invalid direction flag (5)
+<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
+<DATE><TIME>|<HOST>|E|   psImageSlice|The specified region contains no data (0x0)
+<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
+<DATE><TIME>|<HOST>|E|   psImageSlice|The specified image region (2001,100 to 2001,100) is outside of image area (0,0 to 1999,999).
+<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
+<DATE><TIME>|<HOST>|E|   psImageSlice|The specified image region (200,1001 to 200,1001) is outside of image area (0,0 to 1999,999).
+<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
+<DATE><TIME>|<HOST>|E|   psImageSlice|The specified image region (200,100 to 2199,100) is outside of image area (0,0 to 1999,999).
+<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
+<DATE><TIME>|<HOST>|E|   psImageSlice|The specified image region (200,100 to 200,1099) is outside of image area (0,0 to 1999,999).
+<DATE><TIME>|<HOST>|I| testImageSlice|Following should be an error.
+<DATE><TIME>|<HOST>|E|   psImageSlice|The stat options didn't specify a single supported statistic type.
 
 ---> TESTPOINT PASSED (psImage{psImageSlice} | tst_psImageExtraction.c)
