Index: /trunk/psLib/test/astro/tst_psCoord.c
===================================================================
--- /trunk/psLib/test/astro/tst_psCoord.c	(revision 6380)
+++ /trunk/psLib/test/astro/tst_psCoord.c	(revision 6381)
@@ -6,6 +6,6 @@
 *  @author GLG, MHPCC
 *
-*  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-01-31 23:24:21 $
+*  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-02-08 21:30:09 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -16,4 +16,5 @@
 static psS32 testPlaneTransformAlloc(void);
 static psS32 testPlaneDistortAlloc(void);
+static psS32 testPlaneAlloc(void);
 static psS32 testPlaneTransformApply(void);
 static psS32 testPlaneDistortApply(void);
@@ -23,4 +24,5 @@
                               {testPlaneTransformAlloc, 826, "psPlaneTransformAlloc()", 0, false},
                               {testPlaneDistortAlloc, 827, "psPlaneDistortAlloc()", 0, false},
+                              {testPlaneAlloc, -1, "psPlaneAlloc()", 0, false},
                               {testPlaneTransformApply, 831, "psPlaneTransformApply()", 0, false},
                               {testPlaneDistortApply, 832, "psPlaneDistortApply()", 0, false},
@@ -41,4 +43,42 @@
 #define ORDER_Z 4
 #define ORDER_T 5
+
+psS32 testPlaneAlloc( void )
+{
+    // Allocate psPlane.
+    psPlane *myP = psPlaneAlloc();
+
+    // Verify returned value is not NULL
+    if(myP == NULL) {
+        psError(PS_ERR_UNKNOWN, true, "psPlaneAlloc() returned NULL not expected.");
+        return 1;
+    }
+
+    // Verify returned transform has members set properly
+    if (!isnan(myP->x)) {
+        psError(PS_ERR_UNKNOWN,true,"myP->x is %d, should be %d", myP->x, NAN);
+        return 2;
+    }
+
+    if (!isnan(myP->y)) {
+        psError(PS_ERR_UNKNOWN,true,"myP->y is %d, should be %d", myP->y, NAN);
+        return 3;
+    }
+
+    if (!isnan(myP->xErr)) {
+        psError(PS_ERR_UNKNOWN,true,"myP->xErr is %d, should be %d", myP->xErr, NAN);
+        return 4;
+    }
+
+    if (!isnan(myP->yErr)) {
+        psError(PS_ERR_UNKNOWN,true,"myP->yErr is %d, should be %d", myP->yErr, NAN);
+        return 5;
+    }
+
+    // Free psPlane
+    psFree(myP);
+
+    return 0;
+}
 
 psS32 testPlaneTransformAlloc( void )
