IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 7, 2006, 5:07:29 PM (20 years ago)
Author:
jhoblitt
Message:

VESION 0.0.23

File:
1 edited

Legend:

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

    r8149 r8228  
    720720        bool            status;
    721721
    722         object = rawImfileRowAlloc("a string", "a string", "a string", "a string");
     722        object = rawImfileRowAlloc("a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64);
    723723        if (!object) {
    724724            exit(EXIT_FAILURE);
     
    745745        }
    746746        if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
     747            psFree(md);
     748            exit(EXIT_FAILURE);
     749        }
     750        if (strncmp(psMetadataLookupPtr(&status, md, "filter"), "a string", MAX_STRING_LENGTH)) {
     751            psFree(md);
     752            exit(EXIT_FAILURE);
     753        }
     754        if (!psMetadataLookupF32(&status, md, "airmass") == 32.32) {
     755            psFree(md);
     756            exit(EXIT_FAILURE);
     757        }
     758        if (!psMetadataLookupF64(&status, md, "ra") == 64.64) {
     759            psFree(md);
     760            exit(EXIT_FAILURE);
     761        }
     762        if (!psMetadataLookupF64(&status, md, "decl") == 64.64) {
     763            psFree(md);
     764            exit(EXIT_FAILURE);
     765        }
     766        if (!psMetadataLookupF32(&status, md, "exp_time") == 32.32) {
     767            psFree(md);
     768            exit(EXIT_FAILURE);
     769        }
     770        if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
     771            psFree(md);
     772            exit(EXIT_FAILURE);
     773        }
     774        if (!psMetadataLookupF64(&status, md, "bg_stdev") == 64.64) {
     775            psFree(md);
     776            exit(EXIT_FAILURE);
     777        }
     778        if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
     779            psFree(md);
     780            exit(EXIT_FAILURE);
     781        }
     782        if (!psMetadataLookupF64(&status, md, "alt") == 64.64) {
     783            psFree(md);
     784            exit(EXIT_FAILURE);
     785        }
     786        if (!psMetadataLookupF64(&status, md, "az") == 64.64) {
     787            psFree(md);
     788            exit(EXIT_FAILURE);
     789        }
     790        if (!psMetadataLookupF32(&status, md, "ccd_temp") == 32.32) {
     791            psFree(md);
     792            exit(EXIT_FAILURE);
     793        }
     794        if (!psMetadataLookupF64(&status, md, "posang") == 64.64) {
    747795            psFree(md);
    748796            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.