Changeset 8543 for trunk/ippdb/tests
- Timestamp:
- Aug 23, 2006, 5:13:02 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) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r8528 r8543 1007 1007 detStackedImfileRow *object; 1008 1008 1009 object = detStackedImfileRowAlloc(-32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64 );1009 object = detStackedImfileRowAlloc(-32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, true ); 1010 1010 1011 1011 if (!object) { … … 1042 1042 } 1043 1043 if (!object->bg_mean_stdev == 64.64) { 1044 psFree(object); 1045 exit(EXIT_FAILURE); 1046 } 1047 if (!object->normalize == true) { 1044 1048 psFree(object); 1045 1049 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r8528 r8543 388 388 } 389 389 390 if (!detStackedImfileInsert(dbh, -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64 )) {390 if (!detStackedImfileInsert(dbh, -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, true)) { 391 391 exit(EXIT_FAILURE); 392 392 } -
trunk/ippdb/tests/insertobject.c
r8528 r8543 564 564 } 565 565 566 object = detStackedImfileRowAlloc(-32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64 );566 object = detStackedImfileRowAlloc(-32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, true); 567 567 if (!object) { 568 568 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r8528 r8543 1210 1210 bool status; 1211 1211 1212 object = detStackedImfileRowAlloc(-32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64 );1212 object = detStackedImfileRowAlloc(-32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, true); 1213 1213 if (!object) { 1214 1214 exit(EXIT_FAILURE); … … 1251 1251 } 1252 1252 if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) { 1253 psFree(md); 1254 exit(EXIT_FAILURE); 1255 } 1256 if (!psMetadataLookupBool(&status, md, "normalize") == true) { 1253 1257 psFree(md); 1254 1258 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r8528 r8543 1839 1839 exit(EXIT_FAILURE); 1840 1840 } 1841 if (!psMetadataAdd(md, PS_LIST_TAIL, "normalize", PS_DATA_BOOL, NULL, true)) { 1842 psFree(md); 1843 exit(EXIT_FAILURE); 1844 } 1841 1845 1842 1846 object = detStackedImfileObjectFromMetadata(md); … … 1877 1881 } 1878 1882 if (!object->bg_mean_stdev == 64.64) { 1883 psFree(object); 1884 exit(EXIT_FAILURE); 1885 } 1886 if (!object->normalize == true) { 1879 1887 psFree(object); 1880 1888 exit(EXIT_FAILURE); -
trunk/ippdb/tests/pop.c
r8528 r8543 558 558 psF64 bg_stdev; 559 559 psF64 bg_mean_stdev; 560 561 dbh = psDBInit("localhost", "test", NULL, "test"); 562 if (!dbh) { 563 exit(EXIT_FAILURE); 564 } 565 566 if (!detStackedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev)) { 560 bool normalize; 561 562 dbh = psDBInit("localhost", "test", NULL, "test"); 563 if (!dbh) { 564 exit(EXIT_FAILURE); 565 } 566 567 if (!detStackedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, &normalize)) { 567 568 exit(EXIT_FAILURE); 568 569 }
Note:
See TracChangeset
for help on using the changeset viewer.
