Changeset 4204 for trunk/psModules/test/tst_pmObjects01.c
- Timestamp:
- Jun 9, 2005, 1:56:39 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psModules/test/tst_pmObjects01.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/tst_pmObjects01.c
r4202 r4204 19 19 * abd never deallocate, no error is generated. 20 20 * 21 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $22 * @date $Date: 2005-06-09 23: 45:42$21 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 22 * @date $Date: 2005-06-09 23:56:39 $ 23 23 * 24 24 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 30 30 #define NUM_COLS 10 31 31 #define ERROR_TOLERANCE 1.0 32 #define ERROR_TOL 0.001 32 33 static int test00(void); 33 34 static int test01(void); … … 105 106 testStatus = false; 106 107 } else { 107 if ((fabs(tmpMoments->x ) > 0.0) ||108 (fabs(tmpMoments->y ) > 0.0) ||109 (fabs(tmpMoments->Sx ) > 0.0) ||110 (fabs(tmpMoments->Sy ) > 0.0) ||111 (fabs(tmpMoments->Sxy ) > 0.0) ||112 (fabs(tmpMoments->Sum ) > 0.0) ||113 (fabs(tmpMoments->Peak ) > 0.0) ||114 (fabs(tmpMoments->Sky ) > 0.0) ||108 if ((fabs(tmpMoments->x-0.0) > ERROR_TOL) || 109 (fabs(tmpMoments->y-0.0) > ERROR_TOL) || 110 (fabs(tmpMoments->Sx-0.0) > ERROR_TOL) || 111 (fabs(tmpMoments->Sy-0.0) > ERROR_TOL) || 112 (fabs(tmpMoments->Sxy-0.0) > ERROR_TOL) || 113 (fabs(tmpMoments->Sum-0.0) > ERROR_TOL) || 114 (fabs(tmpMoments->Peak-0.0) > ERROR_TOL) || 115 (fabs(tmpMoments->Sky-0.0) > ERROR_TOL) || 115 116 (tmpMoments->nPixels != 0)) { 116 117 printf("TEST ERROR: pmMomentsAlloc() did not properly initialize the psMoments structure.\n");
Note:
See TracChangeset
for help on using the changeset viewer.
