Index: /trunk/psLib/test/astronomy/tst_psCoord.c
===================================================================
--- /trunk/psLib/test/astronomy/tst_psCoord.c	(revision 2200)
+++ /trunk/psLib/test/astronomy/tst_psCoord.c	(revision 2201)
@@ -6,6 +6,6 @@
 *  @author GLG, MHPCC
 *
-*  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-10-26 21:57:32 $
+*  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-26 22:51:56 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -16,4 +16,6 @@
 
 static int test1( void );
+static int test1b( void );
+static int test1c( void );
 static int test2( void );
 static int test3( void );
@@ -30,4 +32,6 @@
 testDescription tests[] = {
                               {test1, 0000, "psSphereTransformAlloc()", 0, false},
+                              {test1b, 0000, "psPlaneTransformAlloc()", 0, false},
+                              {test1c, 0000, "psPlaneDistortAlloc()", 0, false},
                               {test2, 0000, "psPlaneTransformApply()", 0, false},
                               {test3, 0000, "psPlaneDistortApply()", 0, false},
@@ -111,4 +115,79 @@
 
     psFree(myST);
+    return(testStatus);
+}
+
+#define NW_TERMS 2
+#define NX_TERMS 3
+#define NY_TERMS 4
+#define NZ_TERMS 5
+int test1b( void )
+{
+    int testStatus = 0;
+    psPlaneTransform *myPT = psPlaneTransformAlloc(NX_TERMS, NY_TERMS);
+
+    if (myPT->x->nX != NX_TERMS) {
+        printf("ERROR: myPT->x->nX is %d, should be %d\n", myPT->x->nX, NX_TERMS);
+        testStatus = 1;
+    }
+    if (myPT->y->nX != NX_TERMS) {
+        printf("ERROR: myPT->y->nX is %d, should be %d\n", myPT->y->nX, NX_TERMS);
+        testStatus = 1;
+    }
+
+    if (myPT->x->nY != NY_TERMS) {
+        printf("ERROR: myPT->x->nY is %d, should be %d\n", myPT->x->nY, NY_TERMS);
+        testStatus = 1;
+    }
+    if (myPT->y->nY != NY_TERMS) {
+        printf("ERROR: myPT->y->nY is %d, should be %d\n", myPT->y->nY, NY_TERMS);
+        testStatus = 1;
+    }
+
+    psFree(myPT);
+    return(testStatus);
+}
+int test1c( void )
+{
+    int testStatus = 0;
+    psPlaneDistort *myPD = psPlaneDistortAlloc(NW_TERMS, NX_TERMS, NY_TERMS, NZ_TERMS);
+
+    if (myPD->x->nW != NW_TERMS) {
+        printf("ERROR: myPD->x->nW is %d, should be %d\n", myPD->x->nW, NW_TERMS);
+        testStatus = 1;
+    }
+    if (myPD->y->nW != NW_TERMS) {
+        printf("ERROR: myPD->y->nW is %d, should be %d\n", myPD->y->nW, NW_TERMS);
+        testStatus = 1;
+    }
+
+    if (myPD->x->nX != NX_TERMS) {
+        printf("ERROR: myPD->x->nX is %d, should be %d\n", myPD->x->nX, NX_TERMS);
+        testStatus = 1;
+    }
+    if (myPD->y->nX != NX_TERMS) {
+        printf("ERROR: myPD->y->nX is %d, should be %d\n", myPD->y->nX, NX_TERMS);
+        testStatus = 1;
+    }
+
+    if (myPD->x->nY != NY_TERMS) {
+        printf("ERROR: myPD->x->nY is %d, should be %d\n", myPD->x->nY, NY_TERMS);
+        testStatus = 1;
+    }
+    if (myPD->y->nY != NY_TERMS) {
+        printf("ERROR: myPD->y->nY is %d, should be %d\n", myPD->y->nY, NY_TERMS);
+        testStatus = 1;
+    }
+
+    if (myPD->x->nZ != NZ_TERMS) {
+        printf("ERROR: myPD->x->nZ is %d, should be %d\n", myPD->x->nZ, NZ_TERMS);
+        testStatus = 1;
+    }
+    if (myPD->y->nZ != NZ_TERMS) {
+        printf("ERROR: myPD->y->nZ is %d, should be %d\n", myPD->y->nZ, NZ_TERMS);
+        testStatus = 1;
+    }
+
+    psFree(myPD);
     return(testStatus);
 }
