Changeset 9229 for trunk/ippdb/tests
- Timestamp:
- Oct 4, 2006, 12:26:17 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
r9213 r9229 1175 1175 detNormalizedImfileRow *object; 1176 1176 1177 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string" );1177 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string" ); 1178 1178 1179 1179 if (!object) { … … 1194 1194 } 1195 1195 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 1196 psFree(object); 1197 exit(EXIT_FAILURE); 1198 } 1199 if (!object->bg == 64.64) { 1200 psFree(object); 1201 exit(EXIT_FAILURE); 1202 } 1203 if (!object->bg_stdev == 64.64) { 1204 psFree(object); 1205 exit(EXIT_FAILURE); 1206 } 1207 if (!object->bg_mean_stdev == 64.64) { 1196 1208 psFree(object); 1197 1209 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r9213 r9229 433 433 } 434 434 435 if (!detNormalizedImfileInsert(dbh, -32, -32, "a string", "a string", "a string", "a string")) {435 if (!detNormalizedImfileInsert(dbh, -32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string")) { 436 436 exit(EXIT_FAILURE); 437 437 } -
trunk/ippdb/tests/insertobject.c
r9213 r9229 630 630 } 631 631 632 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string");632 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string"); 633 633 if (!object) { 634 634 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r9213 r9229 1401 1401 bool status; 1402 1402 1403 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", "a string", "a string");1403 object = detNormalizedImfileRowAlloc(-32, -32, "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string"); 1404 1404 if (!object) { 1405 1405 exit(EXIT_FAILURE); … … 1426 1426 } 1427 1427 if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) { 1428 psFree(md); 1429 exit(EXIT_FAILURE); 1430 } 1431 if (!psMetadataLookupF64(&status, md, "bg") == 64.64) { 1432 psFree(md); 1433 exit(EXIT_FAILURE); 1434 } 1435 if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) { 1436 psFree(md); 1437 exit(EXIT_FAILURE); 1438 } 1439 if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) { 1428 1440 psFree(md); 1429 1441 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r9213 r9229 2133 2133 exit(EXIT_FAILURE); 2134 2134 } 2135 if (!psMetadataAddF64(md, PS_LIST_TAIL, "bg", 0, NULL, 64.64)) { 2136 psFree(md); 2137 exit(EXIT_FAILURE); 2138 } 2139 if (!psMetadataAddF64(md, PS_LIST_TAIL, "bg_stdev", 0, NULL, 64.64)) { 2140 psFree(md); 2141 exit(EXIT_FAILURE); 2142 } 2143 if (!psMetadataAddF64(md, PS_LIST_TAIL, "bg_mean_stdev", 0, NULL, 64.64)) { 2144 psFree(md); 2145 exit(EXIT_FAILURE); 2146 } 2135 2147 if (!psMetadataAddStr(md, PS_LIST_TAIL, "b1_uri", 0, NULL, "a string")) { 2136 2148 psFree(md); … … 2163 2175 } 2164 2176 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 2177 psFree(object); 2178 exit(EXIT_FAILURE); 2179 } 2180 if (!object->bg == 64.64) { 2181 psFree(object); 2182 exit(EXIT_FAILURE); 2183 } 2184 if (!object->bg_stdev == 64.64) { 2185 psFree(object); 2186 exit(EXIT_FAILURE); 2187 } 2188 if (!object->bg_mean_stdev == 64.64) { 2165 2189 psFree(object); 2166 2190 exit(EXIT_FAILURE); -
trunk/ippdb/tests/pop.c
r9213 r9229 631 631 char class_id[256]; 632 632 char uri[256]; 633 psF64 bg; 634 psF64 bg_stdev; 635 psF64 bg_mean_stdev; 633 636 char b1_uri[256]; 634 637 char b2_uri[256]; … … 639 642 } 640 643 641 if (!detNormalizedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, (char **)&b1_uri, (char **)&b2_uri)) {644 if (!detNormalizedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, &bg, &bg_stdev, &bg_mean_stdev, (char **)&b1_uri, (char **)&b2_uri)) { 642 645 exit(EXIT_FAILURE); 643 646 }
Note:
See TracChangeset
for help on using the changeset viewer.
