Changeset 3445
- Timestamp:
- Mar 17, 2005, 9:44:44 AM (21 years ago)
- Location:
- trunk/psLib/test
- Files:
-
- 2 edited
-
astronomy/tst_psMetadata_05.c (modified) (5 diffs)
-
collections/tst_psMetadata_05.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astronomy/tst_psMetadata_05.c
r3407 r3445 22 22 * @author Ross Harman, MHPCC 23 23 * 24 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $25 * @date $Date: 2005-03-1 1 20:38:56$24 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 25 * @date $Date: 2005-03-17 19:44:44 $ 26 26 * 27 27 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 164 164 } 165 165 166 if (psMetadataItemPrint(fd, "S32 = %+06.1f\n", item2) == false) { 167 printf("ERROR: Return type should be true\n"); 168 return 10; 169 } 170 166 171 if (psMetadataItemPrint(fd, "BOL = %ld\n", item3) == false) { 167 172 printf("ERROR: Return type should be true\n"); … … 170 175 171 176 if (psMetadataItemPrint(fd, "F32 = %g\n", item5) == false) { 177 printf("ERROR: Return type should be true\n"); 178 return 12; 179 } 180 181 if (psMetadataItemPrint(fd, "F32 = % #i\n", item5) == false) { 172 182 printf("ERROR: Return type should be true\n"); 173 183 return 12; … … 203 213 } 204 214 215 char truth1b[] = "S32 = +055.0"; 216 fgets(line, 256, fd); 217 if(strncmp(line, truth1b, 12)) { 218 printf("ERROR: Data in file is not as expected. Value: %s. Should be: %s\n", line, truth1b); 219 } 220 205 221 char truth2[] = "BOL = 0"; 206 222 fgets(line, 256, fd); … … 213 229 if(strncmp(line, truth3, 10)) { 214 230 printf("ERROR: Data in file is not as expected. Value: %s. Should be: %s\n", line, truth3); 231 } 232 233 char truth3b[] = "F32 = 3"; 234 fgets(line, 256, fd); 235 if(strncmp(line, truth3b, 8)) { 236 printf("ERROR: Data in file is not as expected. Value: %s. Should be: %s\n", line, truth3b); 215 237 } 216 238 -
trunk/psLib/test/collections/tst_psMetadata_05.c
r3407 r3445 22 22 * @author Ross Harman, MHPCC 23 23 * 24 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $25 * @date $Date: 2005-03-1 1 20:38:56$24 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 25 * @date $Date: 2005-03-17 19:44:44 $ 26 26 * 27 27 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 164 164 } 165 165 166 if (psMetadataItemPrint(fd, "S32 = %+06.1f\n", item2) == false) { 167 printf("ERROR: Return type should be true\n"); 168 return 10; 169 } 170 166 171 if (psMetadataItemPrint(fd, "BOL = %ld\n", item3) == false) { 167 172 printf("ERROR: Return type should be true\n"); … … 170 175 171 176 if (psMetadataItemPrint(fd, "F32 = %g\n", item5) == false) { 177 printf("ERROR: Return type should be true\n"); 178 return 12; 179 } 180 181 if (psMetadataItemPrint(fd, "F32 = % #i\n", item5) == false) { 172 182 printf("ERROR: Return type should be true\n"); 173 183 return 12; … … 203 213 } 204 214 215 char truth1b[] = "S32 = +055.0"; 216 fgets(line, 256, fd); 217 if(strncmp(line, truth1b, 12)) { 218 printf("ERROR: Data in file is not as expected. Value: %s. Should be: %s\n", line, truth1b); 219 } 220 205 221 char truth2[] = "BOL = 0"; 206 222 fgets(line, 256, fd); … … 213 229 if(strncmp(line, truth3, 10)) { 214 230 printf("ERROR: Data in file is not as expected. Value: %s. Should be: %s\n", line, truth3); 231 } 232 233 char truth3b[] = "F32 = 3"; 234 fgets(line, 256, fd); 235 if(strncmp(line, truth3b, 8)) { 236 printf("ERROR: Data in file is not as expected. Value: %s. Should be: %s\n", line, truth3b); 215 237 } 216 238
Note:
See TracChangeset
for help on using the changeset viewer.
