IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 30, 2006, 11:55:36 AM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.53

File:
1 edited

Legend:

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

    r9783 r9788  
    764764        bool            status;
    765765
    766         object = p3PendingExpRowAlloc("a string", -32, -32);
     766        object = p3PendingExpRowAlloc("a string", -32, -32, "a string");
    767767        if (!object) {
    768768            exit(EXIT_FAILURE);
     
    788788            exit(EXIT_FAILURE);
    789789        }
     790        if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
     791            psFree(md);
     792            exit(EXIT_FAILURE);
     793        }
    790794
    791795        psFree(md);
     
    797801        bool            status;
    798802
    799         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);
     803        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, "a string");
    800804        if (!object) {
    801805            exit(EXIT_FAILURE);
     
    866870        }
    867871        if (!psMetadataLookupS32(&status, md, "p3_version") == -32) {
     872            psFree(md);
     873            exit(EXIT_FAILURE);
     874        }
     875        if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
     876            psFree(md);
     877            exit(EXIT_FAILURE);
     878        }
     879
     880        psFree(md);
     881    }
     882
     883    {
     884        psMetadata      *md;
     885        p3MaskRow       *object;
     886        bool            status;
     887
     888        object = p3MaskRowAlloc("a string");
     889        if (!object) {
     890            exit(EXIT_FAILURE);
     891        }
     892
     893        md = p3MaskMetadataFromObject(object);
     894        if (!md) {
     895            exit(EXIT_FAILURE);
     896        }
     897
     898        psFree(object);
     899
     900        if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
    868901            psFree(md);
    869902            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.