IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 14, 2004, 11:04:23 AM (22 years ago)
Author:
harman
Message:

Updated tests to reflect major changes to psVector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/collections/tst_psSort_04.c

    r620 r688  
    44 *
    55 *  This test driver contains the following tests for psSort test point 4:
    6  *     A)  Attempt to sort with null input array
    7  *     B)  Attempt to sort with null output array
    8  *     C)  Free arrays
     6 *     A)  Attempt to sort with null input vector
     7 *     B)  Attempt to sort with null output vector
     8 *     C)  Free vectors
    99 *
    1010 *  @author  Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
    13  *  @date  $Date: 2004-05-08 01:19:28 $
     12 *  @version $Revision: 1.3 $  $Name: not supported by cvs2svn $
     13 *  @date  $Date: 2004-05-14 21:04:23 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2323         char* argv[])
    2424{
    25     psArray *badIn = NULL;
    26     psArray *badOut = NULL;
    27     psArray *goodIn = psFloatArrayAlloc(5);
    28     psArray *goodOut = psFloatArrayAlloc(5);
     25    psVector *badIn = NULL;
     26    psVector *badOut = NULL;
     27    psVector *goodIn = psVectorAlloc(PS_TYPE_FLOAT, 5);
     28    psVector *goodOut = psVectorAlloc(PS_TYPE_FLOAT, 5);
    2929
    30     // Test A - Attempt to sort with null input array
    31     printNegativeTestHeader(stdout,"psSort", "Attempt to sort with null input array",
    32                             "Null input array", 0);
     30    // Test A - Attempt to sort with null input vector
     31    printNegativeTestHeader(stdout,"psSort", "Attempt to sort with null input vector",
     32                            "Null input vector", 0);
    3333    goodOut = psSort(goodOut, badIn);
    34     printFooter(stdout, "psSort", "Attempt to sort with null input array", true);
     34    printFooter(stdout, "psSort", "Attempt to sort with null input vector", true);
    3535
    36     // Test B - Attempt to sort with null output array
    37     printNegativeTestHeader(stdout,"psSort", "Attempt to sort with null output array",
    38                             "Null output array", 0);
     36    // Test B - Attempt to sort with null output vector
     37    printNegativeTestHeader(stdout,"psSort", "Attempt to sort with null output vector",
     38                            "Null output vector", 0);
    3939    badOut = psSort(badOut, goodIn);
    40     printFooter(stdout, "psSort", "Attempt to sort with null output array", true);
     40    printFooter(stdout, "psSort", "Attempt to sort with null output vector", true);
    4141
    42     // Test C - Free arrays
    43     printPositiveTestHeader(stdout, "psSort", "Free arrays");
    44     psFloatArrayFree(goodIn);
    45     psFloatArrayFree(goodOut);
     42    // Test C - Free vectors
     43    printPositiveTestHeader(stdout, "psSort", "Free vectors");
     44    psVectorFree(goodIn);
     45    psVectorFree(goodOut);
    4646    psMemCheckLeaks(0, NULL, stdout);
    4747    int nBad = psMemCheckCorruption(0);
Note: See TracChangeset for help on using the changeset viewer.