IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 20, 2006, 5:33:47 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.51

File:
1 edited

Legend:

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

    r9684 r9705  
    845845        bool            status;
    846846
    847         object = detRunRowAlloc(-32, -32, "a string", "a string");
     847        object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z");
    848848        if (!object) {
    849849            exit(EXIT_FAILURE);
     
    870870        }
    871871        if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
     872            psFree(md);
     873            exit(EXIT_FAILURE);
     874        }
     875        if (strncmp(psMetadataLookupPtr(&status, md, "exp_type"), "a string", MAX_STRING_LENGTH)) {
     876            psFree(md);
     877            exit(EXIT_FAILURE);
     878        }
     879        if (strncmp(psMetadataLookupPtr(&status, md, "filter"), "a string", MAX_STRING_LENGTH)) {
     880            psFree(md);
     881            exit(EXIT_FAILURE);
     882        }
     883        if (!psMetadataLookupF32(&status, md, "airmass") == 32.32) {
     884            psFree(md);
     885            exit(EXIT_FAILURE);
     886        }
     887        if (!psMetadataLookupF32(&status, md, "exp_time") == 32.32) {
     888            psFree(md);
     889            exit(EXIT_FAILURE);
     890        }
     891        if (!psMetadataLookupF32(&status, md, "ccd_temp") == 32.32) {
     892            psFree(md);
     893            exit(EXIT_FAILURE);
     894        }
     895        if (!psMetadataLookupF64(&status, md, "posang") == 64.64) {
     896            psFree(md);
     897            exit(EXIT_FAILURE);
     898        }
     899        if (strncmp(psMetadataLookupPtr(&status, md, "object"), "a string", MAX_STRING_LENGTH)) {
     900            psFree(md);
     901            exit(EXIT_FAILURE);
     902        }
     903            psFree(md);
     904            exit(EXIT_FAILURE);
     905        }
     906            psFree(md);
     907            exit(EXIT_FAILURE);
     908        }
    872909            psFree(md);
    873910            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.