IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 13, 2007, 2:39:51 PM (19 years ago)
Author:
Paul Price
Message:

Removing complex number support. No-one was using it, and it prevents compilation on Solaris.

Location:
trunk/psLib/test/types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/types/tap_psMetadataConfigFormat.c

    r11667 r12431  
    6767        psFree(list);
    6868        psFree(md);
    69     }
    70 
    71 
    72     //Return NULL for attempting to format vector with type = complex
    73     {
    74         psMemId id = psMemGetId();
    75         psVector *vec = psVectorAlloc(60, PS_TYPE_C64);
    76         for (int i = 0; i < 5; i++)
    77         {
    78             vec->data.C64[i] = i+1;
    79         }
    80         md = psMetadataAlloc();
    81         psMetadataAddVector(md, PS_LIST_TAIL, "vectorC64", 0, "", vec);
    82         out = psMetadataConfigFormat(md);
    83         ok( out == NULL,
    84             "psMetadataConfigFormat:         return NULL for metadata containing a "
    85             "Complex vector.");
    86         psFree(vec);
    87         psFree(md);
    88         ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    8969    }
    9070
  • trunk/psLib/test/types/tap_psMetadata_printing.c

    r10822 r12431  
    153153        psImageSet(image, 0, 0, 1);
    154154        psMetadataAddImage(md, PS_LIST_TAIL, "image1", 0, "I am an Image", image);
    155      
     155
    156156        psHash *hash = psHashAlloc(1);
    157157        psHashAdd(hash, "hash", image);
    158158        psMetadataAddHash(md, PS_LIST_TAIL, "hash1", 0, "I am a Hash", hash);
    159      
     159
    160160        psLookupTable *lookup = psLookupTableAlloc("table2.dat", "%s", 0);
    161161        psMetadataAddLookupTable(md, PS_LIST_TAIL, "lookup", 0, "I am a LookupTable", lookup);
    162      
     162
    163163        psArray *array = psArrayAlloc(1);
    164164        psArraySet(array, 0, image);
    165165        psMetadataAddArray(md, PS_LIST_TAIL, "array", 0, "I am an Array", array);
    166      
     166
    167167        psFree(array);
    168168        psFree(lookup);
     
    230230    psFree(md2);
    231231
    232     //Return false for unsupported vector type (C32)
    233     md2 = psMetadataAlloc();
    234     psVector *vector = psVectorAlloc(2, PS_TYPE_C32);
    235     psMetadataAddVector(md2, PS_LIST_HEAD, "name here", 0, "I vector", vector);
    236     {
    237         ok ( !psMetadataPrint(NULL, md2, 2),
    238              "psMetadataPrint:            return false for metadata with unknown vector-type.");
    239     }
    240     psFree(vector);
    241     psFree(md2);
    242 
    243232    //Valid case where fd is NULL -> stdout
    244233    md2 = psMetadataAlloc();
Note: See TracChangeset for help on using the changeset viewer.