Changeset 9307 for trunk/ippdb/tests
- Timestamp:
- Oct 5, 2006, 12:04:18 PM (20 years ago)
- Location:
- trunk/ippdb/tests
- Files:
-
- 6 edited
-
alloc.c (modified) (2 diffs)
-
insert.c (modified) (1 diff)
-
insertobject.c (modified) (1 diff)
-
metadatafromobject.c (modified) (2 diffs)
-
objectfrommetadata.c (modified) (2 diffs)
-
pop.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r9301 r9307 949 949 p3ProcessedExpRow *object; 950 950 951 object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", -32, -32 );951 object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32 ); 952 952 953 953 if (!object) { … … 996 996 } 997 997 if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) { 998 psFree(object); 999 exit(EXIT_FAILURE); 1000 } 1001 if (!object->zp_mean == 32.32) { 1002 psFree(object); 1003 exit(EXIT_FAILURE); 1004 } 1005 if (!object->zp_stdev == 32.32) { 998 1006 psFree(object); 999 1007 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r9301 r9307 343 343 } 344 344 345 if (!p3ProcessedExpInsert(dbh, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", -32, -32)) {345 if (!p3ProcessedExpInsert(dbh, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32)) { 346 346 exit(EXIT_FAILURE); 347 347 } -
trunk/ippdb/tests/insertobject.c
r9301 r9307 498 498 } 499 499 500 object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", -32, -32);500 object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32); 501 501 if (!object) { 502 502 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r9301 r9307 1127 1127 bool status; 1128 1128 1129 object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", -32, -32);1129 object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -32, -32); 1130 1130 if (!object) { 1131 1131 exit(EXIT_FAILURE); … … 1180 1180 } 1181 1181 if (strncmp(psMetadataLookupPtr(&status, md, "b2_uri"), "a string", MAX_STRING_LENGTH)) { 1182 psFree(md); 1183 exit(EXIT_FAILURE); 1184 } 1185 if (!psMetadataLookupF32(&status, md, "zp_mean") == 32.32) { 1186 psFree(md); 1187 exit(EXIT_FAILURE); 1188 } 1189 if (!psMetadataLookupF32(&status, md, "zp_stdev") == 32.32) { 1182 1190 psFree(md); 1183 1191 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r9301 r9307 1757 1757 exit(EXIT_FAILURE); 1758 1758 } 1759 if (!psMetadataAddF32(md, PS_LIST_TAIL, "zp_mean", 0, NULL, 32.32)) { 1760 psFree(md); 1761 exit(EXIT_FAILURE); 1762 } 1763 if (!psMetadataAddF32(md, PS_LIST_TAIL, "zp_stdev", 0, NULL, 32.32)) { 1764 psFree(md); 1765 exit(EXIT_FAILURE); 1766 } 1759 1767 if (!psMetadataAddS32(md, PS_LIST_TAIL, "p2_version", 0, NULL, -32)) { 1760 1768 psFree(md); … … 1815 1823 } 1816 1824 if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) { 1825 psFree(object); 1826 exit(EXIT_FAILURE); 1827 } 1828 if (!object->zp_mean == 32.32) { 1829 psFree(object); 1830 exit(EXIT_FAILURE); 1831 } 1832 if (!object->zp_stdev == 32.32) { 1817 1833 psFree(object); 1818 1834 exit(EXIT_FAILURE); -
trunk/ippdb/tests/pop.c
r9301 r9307 511 511 char b1_uri[256]; 512 512 char b2_uri[256]; 513 psF32 zp_mean; 514 psF32 zp_stdev; 513 515 psS32 p2_version; 514 516 psS32 p3_version; … … 519 521 } 520 522 521 if (!p3ProcessedExpPop(dbh, (char **)&exp_tag, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, &sigma_ra, &sigma_dec, &nastro, (char **)&b1_uri, (char **)&b2_uri, & p2_version, &p3_version)) {523 if (!p3ProcessedExpPop(dbh, (char **)&exp_tag, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, &sigma_ra, &sigma_dec, &nastro, (char **)&b1_uri, (char **)&b2_uri, &zp_mean, &zp_stdev, &p2_version, &p3_version)) { 522 524 exit(EXIT_FAILURE); 523 525 }
Note:
See TracChangeset
for help on using the changeset viewer.
