IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9307 for trunk/ippdb/tests


Ignore:
Timestamp:
Oct 5, 2006, 12:04:18 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.48

Location:
trunk/ippdb/tests
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/tests/alloc.c

    r9301 r9307  
    949949        p3ProcessedExpRow *object;
    950950
    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    );
    952952
    953953        if (!object) {
     
    996996        }
    997997        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) {
    9981006            psFree(object);
    9991007            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/insert.c

    r9301 r9307  
    343343        }
    344344
    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)) {
    346346            exit(EXIT_FAILURE);
    347347        }
  • trunk/ippdb/tests/insertobject.c

    r9301 r9307  
    498498        }
    499499
    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);
    501501        if (!object) {
    502502            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/metadatafromobject.c

    r9301 r9307  
    11271127        bool            status;
    11281128
    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);
    11301130        if (!object) {
    11311131            exit(EXIT_FAILURE);
     
    11801180        }
    11811181        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) {
    11821190            psFree(md);
    11831191            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/objectfrommetadata.c

    r9301 r9307  
    17571757            exit(EXIT_FAILURE);
    17581758        }
     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        }
    17591767        if (!psMetadataAddS32(md, PS_LIST_TAIL, "p2_version", 0, NULL, -32)) {
    17601768            psFree(md);
     
    18151823        }
    18161824        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) {
    18171833            psFree(object);
    18181834            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/pop.c

    r9301 r9307  
    511511        char            b1_uri[256];
    512512        char            b2_uri[256];
     513        psF32           zp_mean;
     514        psF32           zp_stdev;
    513515        psS32           p2_version;
    514516        psS32           p3_version;
     
    519521        }
    520522
    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)) {
    522524            exit(EXIT_FAILURE);
    523525        }
Note: See TracChangeset for help on using the changeset viewer.