IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 15, 2023, 4:59:00 AM (3 years ago)
Author:
eugene
Message:

fixing tests so they compile (need to address some API changes to psPlaneTranformAlloc, psImageMapFit; fix unused vars, etc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/psLib/test/astro/tap_psCoord.c

    r13623 r42493  
    4848    {
    4949        psMemId id = psMemGetId();
    50         psPlaneTransform *myPT = psPlaneTransformAlloc(ORDER_X, ORDER_Y);
     50        psPlaneTransform *myPT = psPlaneTransformAlloc(ORDER_X, ORDER_Y, PS_POLYNOMIAL_ORD);
    5151        ok(myPT != NULL, "psPlaneTransformAlloc() returned non-NULL");
    5252        skip_start(myPT == NULL, 4, "Skipping tests because psPlaneTransformAlloc() returned NULL");
     
    5959        // Attempt to specify negative x order and verify NULL returned and
    6060        // errror message generated
    61         myPT = psPlaneTransformAlloc(-1, 1);
     61        myPT = psPlaneTransformAlloc(-1, 1, PS_POLYNOMIAL_ORD);
    6262        ok(myPT == NULL, "psPlaneTransformAlloc(-1, 1) returned NULL");
    6363        psFree(myPT);
    6464
    65         myPT = psPlaneTransformAlloc(1, -1);
     65        myPT = psPlaneTransformAlloc(1, -1, PS_POLYNOMIAL_ORD);
    6666        ok(myPT == NULL, "psPlaneTransformAlloc(1, -1) returned NULL");
    6767        psFree(myPT);
     
    110110        ok(in != NULL, "psPlaneAlloc() returned non-NULL");
    111111        skip_start(in == NULL, 2, "Skipping tests because psPlaneAlloc() returned NULL");
    112         psPlaneTransform* pt = psPlaneTransformAlloc(2,2);
     112        psPlaneTransform* pt = psPlaneTransformAlloc(2, 2, PS_POLYNOMIAL_ORD);
    113113        ok(pt != NULL, "psPlaneTransformAlloc() returned non-NULL");
    114114        skip_start(pt == NULL, 1, "Skipping tests because psPlaneTransformAlloc() returned NULL");
     
    169169        psMemId id = psMemGetId();
    170170        psPlane *in = psPlaneAlloc();
    171         psPlaneTransform *pt = psPlaneTransformAlloc(2,2);
     171        psPlaneTransform *pt = psPlaneTransformAlloc(2, 2, PS_POLYNOMIAL_ORD);
    172172        psFree(pt->x);
    173173        pt->x = NULL;
     
    184184        psMemId id = psMemGetId();
    185185        psPlane* in = psPlaneAlloc();
    186         psPlaneTransform* pt = psPlaneTransformAlloc(2,2);
     186        psPlaneTransform* pt = psPlaneTransformAlloc(2,2, PS_POLYNOMIAL_ORD);
    187187        psFree(pt->y);
    188188        pt->y = NULL;
     
    198198    {
    199199        psMemId id = psMemGetId();
    200         psPlaneTransform* pt = psPlaneTransformAlloc(2,2);
     200        psPlaneTransform* pt = psPlaneTransformAlloc(2,2, PS_POLYNOMIAL_ORD);
    201201        psPlane *tmpPL = psPlaneTransformApply(NULL, pt, NULL);
    202202        ok(tmpPL == NULL, "psPlaneTransformApply(NULL, pt, NULL) did not return NULL");
     
    314314    {
    315315        psMemId id = psMemGetId();
    316         psPlaneTransform *trans = psPlaneTransformAlloc(1, 3);
     316        psPlaneTransform *trans = psPlaneTransformAlloc(1, 3, PS_POLYNOMIAL_ORD);
    317317        psPixels *output = psPixelsTransform(NULL, NULL, trans);
    318318        ok(output == NULL, "psPixelsTransform(NULL, NULL, trans) returned NULL");
     
    342342        input->data[1].x = 1.0;
    343343        input->data[1].y = 6.0;
    344         psPlaneTransform *trans = psPlaneTransformAlloc(1, 3);
     344        psPlaneTransform *trans = psPlaneTransformAlloc(1, 3, PS_POLYNOMIAL_ORD);
    345345        trans->x->coeff[0][0] = 0;
    346346        trans->x->coeff[1][0] = 1.0;
Note: See TracChangeset for help on using the changeset viewer.