Index: trunk/psLib/test/dataManip/tst_psMatrix01.c
===================================================================
--- trunk/psLib/test/dataManip/tst_psMatrix01.c	(revision 1346)
+++ trunk/psLib/test/dataManip/tst_psMatrix01.c	(revision 1406)
@@ -11,6 +11,6 @@
 *  @author  Ross Harman, MHPCC
 *
-*  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
-*  @date  $Date: 2004-07-30 02:55:47 $
+*  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
+*  @date  $Date: 2004-08-06 22:34:06 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -23,16 +23,16 @@
 #define PRINT_MATRIX(IMAGE)                         \
 for(int i=IMAGE->numRows-1; i>-1; i--) {        \
-        for(int j=0; j<IMAGE->numCols; j++) {       \
-                printf("%f ", IMAGE->data.F64[i][j]);   \
-            }                                          \
-        printf("\n");                              \
-    }
-    
+    for(int j=0; j<IMAGE->numCols; j++) {       \
+        printf("%f ", IMAGE->data.F64[i][j]);   \
+    }                                          \
+    printf("\n");                              \
+}
+
 int main( int argc,
           char* argv[] )
 {
     psImage * tempImage = NULL;
-    
-    
+
+
     // Test A - Create input and output images
     printPositiveTestHeader( stdout, "psMatrix", "Create input and output images" );
@@ -50,6 +50,6 @@
     PRINT_MATRIX( inImage );
     printFooter( stdout, "psMatrix", "Create input and output images", true );
-    
-    
+
+
     // Test B - Transpose input image into output image
     printPositiveTestHeader( stdout, "psMatrix", "Transpose input image into output image" );
@@ -58,11 +58,12 @@
     PRINT_MATRIX( outImage );
     if ( outImage->type.dimen != PS_DIMEN_IMAGE ) {
-            printf( "Error: Resulting image is not PS_DIMEN_IMAGE\n" );
-        } else if ( outImage != tempImage ) {
+        printf( "Error: Resulting image is not PS_DIMEN_IMAGE\n" );
+    } else
+        if ( outImage != tempImage ) {
             printf( "Error: Return pointer not equal to output argument pointer\n" );
         }
     printFooter( stdout, "psMatrix", "Transpose input image into output image", true );
-    
-    
+
+
     // Test C -  Transpose input image into auto allocated NULL output image
     printPositiveTestHeader( stdout, "psMatrix", "ranspose input image into auto allocated NULL output image" );
@@ -71,6 +72,6 @@
     PRINT_MATRIX( outImageNull );
     printFooter( stdout, "psMatrix", "ranspose input image into auto allocated NULL output image", true );
-    
-    
+
+
     // Test D - Free images and check for leaks
     printPositiveTestHeader( stdout, "psMatrix", "Free images and check for leaks" );
@@ -80,12 +81,12 @@
     int nLeaks = psMemCheckLeaks( 0, NULL, stdout );
     if ( nLeaks != 0 ) {
-            printf( "ERROR: Found %d memory leaks\n", nLeaks );
-        }
+        printf( "ERROR: Found %d memory leaks\n", nLeaks );
+    }
     int nBad = psMemCheckCorruption( 0 );
     if ( nBad ) {
-            printf( "ERROR: Found %d bad memory blocks\n", nBad );
-        }
+        printf( "ERROR: Found %d bad memory blocks\n", nBad );
+    }
     printFooter( stdout, "psMatrix" , "Free images and check for leaks", true );
-    
+
     return 0;
 }
