IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 15, 2006, 4:31:35 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.29

File:
1 edited

Legend:

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

    r8325 r8368  
    10421042
    10431043    {
     1044        detNormalizedStatImfileRow *object;
     1045
     1046        object = detNormalizedStatImfileRowAlloc(-32, -32, "a string", 32.32    );
     1047
     1048        if (!object) {
     1049            exit(EXIT_FAILURE);
     1050        }
     1051
     1052        if (!object->det_id == -32) {
     1053            psFree(object);
     1054            exit(EXIT_FAILURE);
     1055        }
     1056        if (!object->iteration == -32) {
     1057            psFree(object);
     1058            exit(EXIT_FAILURE);
     1059        }
     1060        if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
     1061            psFree(object);
     1062            exit(EXIT_FAILURE);
     1063        }
     1064        if (!object->norm == 32.32) {
     1065            psFree(object);
     1066            exit(EXIT_FAILURE);
     1067        }
     1068
     1069        psFree(object);
     1070    }
     1071
     1072    {
    10441073        detNormalizedImfileRow *object;
    10451074
Note: See TracChangeset for help on using the changeset viewer.