Index: /trunk/psLib/test/astronomy/tst_psCoord.c
===================================================================
--- /trunk/psLib/test/astronomy/tst_psCoord.c	(revision 2931)
+++ /trunk/psLib/test/astronomy/tst_psCoord.c	(revision 2932)
@@ -6,9 +6,10 @@
 *  @author GLG, MHPCC
 *
-*  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-01-07 23:52:00 $
+*  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-01-08 00:12:44 $
 *
 *  XXX: Must test psSpherePrecess.
 *  XXX: psSphereSetOffset(&position1, &offset, PS_LINEAR, 0) doesn't work?
+*  XXX: Test with a bad offfset unit type in the SphereGet/SetOffset() functions.
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -986,4 +987,13 @@
 
     printf("-------------------------------------------------------------------\n");
+    printf("Calling psSphereGetOffset() with bogus offset units.  Should generate error, return NULL.\n");
+    offset = psSphereGetOffset(&position1, &position2, PS_SPHERICAL, 0x54321);
+    if (offset != NULL) {
+        printf("TEST ERROR: psSphereGetOffset() did not return NULL.\n");
+        testStatus = false;
+        offset = NULL;
+    }
+
+    printf("-------------------------------------------------------------------\n");
     return(testStatus);
 }
@@ -1086,4 +1096,13 @@
 
     printf("-------------------------------------------------------------------\n");
+    printf("Calling psSphereSetOffset() with bogus offset unit.  Should generate error, return NULL.\n");
+    position2 = psSphereSetOffset(&position1, &offset, PS_SPHERICAL, 0x54321);
+    if (position2 != NULL) {
+        printf("TEST ERROR: psSphereSetOffset() did not return NULL.\n");
+        testStatus = false;
+        position2 = NULL;
+    }
+
+    printf("-------------------------------------------------------------------\n");
     return(testStatus);
 }
