IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 27, 2007, 1:56:12 PM (19 years ago)
Author:
gusciora
Message:

Made several changes to keep the tap tests up-to-date with recent src
changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/math/tap_psHist02.c

    r10813 r12094  
    3535
    3636        psHistogram *myHist = psHistogramAlloc(lower, higher, numBins );
    37         myHist = psVectorHistogram( myHist, myData, NULL, NULL, 0 );
    38         ok(myHist != NULL, "psVectorHistogram() returned a non-NULL psHistogram");
     37        bool rc = psVectorHistogram( myHist, myData, NULL, NULL, 0 );
     38        ok(rc == false, "psVectorHistogram() returned TRUE");
    3939        skip_start(myHist == NULL, 1, "Skipping tests because psVectorHistogram() returned NULL");
    4040
     
    8080        }
    8181        psHistogram *myHist = psHistogramAlloc(lower, higher, numBins );
    82         myHist = psVectorHistogram(myHist, myData, NULL, myMask, 1);
    83         ok(myHist != NULL, "psVectorHistogram() returned a non-NULL psHistogram");
     82        bool rc = psVectorHistogram(myHist, myData, NULL, myMask, 1);
     83        ok(rc == false, "psVectorHistogram() returned TRUE");
    8484        skip_start(myHist == NULL, 1, "Skipping tests because psVectorHistogram() returned NULL");
    8585
     
    123123            myData->data.F32[ i ] = lower + ( ( higher - lower ) / ( float ) NUM_DATA ) * ( float ) i;
    124124        }
    125         ok(NULL == psVectorHistogram( NULL, myData, NULL, NULL, 0 ), "psVectorHistogram() returned NULL with a NULL psHistogram input");
     125        ok(false == psVectorHistogram( NULL, myData, NULL, NULL, 0 ),
     126          "psVectorHistogram() returned FALSE with a NULL psHistogram input");
    126127        psFree( myData );
    127128        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
     
    135136        psMemId id = psMemGetId();
    136137        psHistogram *myHist = psHistogramAlloc(lower, higher, numBins );
    137         ok(NULL != psVectorHistogram( myHist, NULL, NULL, NULL, 0 ), "psVectorHistogram() returns non-NULL with a NULL input array");
     138        ok(true == psVectorHistogram( myHist, NULL, NULL, NULL, 0 ),
     139          "psVectorHistogram() returns TRUE with a NULL input array");
    138140        psFree(myHist);
    139141        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
     
    149151        psVector *myData = psVectorAlloc(0, PS_TYPE_F32);
    150152        psHistogram *myHist = psHistogramAlloc(lower, higher, numBins);
    151         myHist = psVectorHistogram(myHist, NULL, NULL, NULL, 0);
    152         ok(NULL != psVectorHistogram( myHist, NULL, NULL, NULL, 0 ), "psVectorHistogram() returns non-NULL with an empty input array");
     153        ok(true == psVectorHistogram( myHist, NULL, NULL, NULL, 0 ),
     154          "psVectorHistogram() returns TRUE with an empty input array");
    153155        psFree(myHist);
    154156        psFree(myData);
Note: See TracChangeset for help on using the changeset viewer.