Changeset 6381
- Timestamp:
- Feb 8, 2006, 11:30:09 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astro/tst_psCoord.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astro/tst_psCoord.c
r6268 r6381 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-0 1-31 23:24:21$8 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-02-08 21:30:09 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 16 16 static psS32 testPlaneTransformAlloc(void); 17 17 static psS32 testPlaneDistortAlloc(void); 18 static psS32 testPlaneAlloc(void); 18 19 static psS32 testPlaneTransformApply(void); 19 20 static psS32 testPlaneDistortApply(void); … … 23 24 {testPlaneTransformAlloc, 826, "psPlaneTransformAlloc()", 0, false}, 24 25 {testPlaneDistortAlloc, 827, "psPlaneDistortAlloc()", 0, false}, 26 {testPlaneAlloc, -1, "psPlaneAlloc()", 0, false}, 25 27 {testPlaneTransformApply, 831, "psPlaneTransformApply()", 0, false}, 26 28 {testPlaneDistortApply, 832, "psPlaneDistortApply()", 0, false}, … … 41 43 #define ORDER_Z 4 42 44 #define ORDER_T 5 45 46 psS32 testPlaneAlloc( void ) 47 { 48 // Allocate psPlane. 49 psPlane *myP = psPlaneAlloc(); 50 51 // Verify returned value is not NULL 52 if(myP == NULL) { 53 psError(PS_ERR_UNKNOWN, true, "psPlaneAlloc() returned NULL not expected."); 54 return 1; 55 } 56 57 // Verify returned transform has members set properly 58 if (!isnan(myP->x)) { 59 psError(PS_ERR_UNKNOWN,true,"myP->x is %d, should be %d", myP->x, NAN); 60 return 2; 61 } 62 63 if (!isnan(myP->y)) { 64 psError(PS_ERR_UNKNOWN,true,"myP->y is %d, should be %d", myP->y, NAN); 65 return 3; 66 } 67 68 if (!isnan(myP->xErr)) { 69 psError(PS_ERR_UNKNOWN,true,"myP->xErr is %d, should be %d", myP->xErr, NAN); 70 return 4; 71 } 72 73 if (!isnan(myP->yErr)) { 74 psError(PS_ERR_UNKNOWN,true,"myP->yErr is %d, should be %d", myP->yErr, NAN); 75 return 5; 76 } 77 78 // Free psPlane 79 psFree(myP); 80 81 return 0; 82 } 43 83 44 84 psS32 testPlaneTransformAlloc( void )
Note:
See TracChangeset
for help on using the changeset viewer.
