IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 28, 2005, 5:23:19 PM (21 years ago)
Author:
drobbin
Message:

changed psPolynomial allocaters to accept unsigned int

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/dataManip/tst_psFunc00.c

    r4422 r4426  
    1414*    orders are created.
    1515*
    16 *    @version $Revision: 1.22 $  $Name: not supported by cvs2svn $
    17 *    @date $Date: 2005-06-29 00:43:46 $
     16*    @version $Revision: 1.23 $  $Name: not supported by cvs2svn $
     17*    @date $Date: 2005-06-29 03:23:19 $
    1818*
    1919*  Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    9999    psFree(my1DPoly);
    100100
    101     // Attempt to allocate with negative order
    102     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    103     if(psPolynomial1DAlloc(-1,PS_POLYNOMIAL_ORD) != NULL) {
    104         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    105         return 7;
    106     }
    107 
     101    /*    // Attempt to allocate with negative order
     102        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     103        if(psPolynomial1DAlloc(-1,PS_POLYNOMIAL_ORD) != NULL) {
     104            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     105            return 7;
     106        }
     107    */
    108108    return 0;
    109109}
     
    151151    psFree(my1DDPoly);
    152152
    153     // Attempt to allocate with negative order
    154     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    155     if(psDPolynomial1DAlloc(-1,PS_POLYNOMIAL_ORD) != NULL) {
    156         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    157         return 7;
    158     }
    159 
     153    /*    // Attempt to allocate with negative order
     154        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     155        if(psDPolynomial1DAlloc(-1,PS_POLYNOMIAL_ORD) != NULL) {
     156            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     157            return 7;
     158        }
     159    */
    160160    return 0;
    161161}
     
    211211    psFree(my2DPoly);
    212212
    213     // Attempt to allocate with negative order
    214     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    215     if(psPolynomial2DAlloc(-1,1,PS_POLYNOMIAL_ORD) != NULL) {
    216         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    217         return 8;
    218     }
    219     // Attempt to allocate with negative order
    220     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    221     if(psPolynomial2DAlloc(1,-1,PS_POLYNOMIAL_ORD) != NULL) {
    222         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    223         return 9;
    224     }
    225 
     213    /*    // Attempt to allocate with negative order
     214        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     215        if(psPolynomial2DAlloc(-1,1,PS_POLYNOMIAL_ORD) != NULL) {
     216            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     217            return 8;
     218        }
     219        // Attempt to allocate with negative order
     220        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     221        if(psPolynomial2DAlloc(1,-1,PS_POLYNOMIAL_ORD) != NULL) {
     222            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     223            return 9;
     224        }
     225    */
    226226    return 0;
    227227}
     
    276276    }
    277277    psFree(my2DDPoly);
    278 
    279     // Attempt to allocate with negative order
    280     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    281     if(psDPolynomial2DAlloc(-1,1,PS_POLYNOMIAL_ORD) != NULL) {
    282         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    283         return 8;
    284     }
    285     // Attempt to allocate with negative order
    286     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    287     if(psDPolynomial2DAlloc(1,-1,PS_POLYNOMIAL_ORD) != NULL) {
    288         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    289         return 9;
    290     }
    291 
     278    /*
     279        // Attempt to allocate with negative order
     280        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     281        if(psDPolynomial2DAlloc(-1,1,PS_POLYNOMIAL_ORD) != NULL) {
     282            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     283            return 8;
     284        }
     285        // Attempt to allocate with negative order
     286        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     287        if(psDPolynomial2DAlloc(1,-1,PS_POLYNOMIAL_ORD) != NULL) {
     288            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     289            return 9;
     290        }
     291    */
    292292    return 0;
    293293}
     
    351351    psFree(my3DPoly);
    352352
    353     // Attempt to allocate with negative order
    354     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    355     if(psPolynomial3DAlloc(-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
    356         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    357         return 9;
    358     }
    359     // Attempt to allocate with negative order
    360     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    361     if(psPolynomial3DAlloc(1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
    362         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    363         return 10;
    364     }
    365     // Attempt to allocate with negative order
    366     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    367     if(psPolynomial3DAlloc(1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
    368         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    369         return 11;
    370     }
    371 
     353    /*    // Attempt to allocate with negative order
     354        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     355        if(psPolynomial3DAlloc(-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
     356            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     357            return 9;
     358        }
     359        // Attempt to allocate with negative order
     360        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     361        if(psPolynomial3DAlloc(1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
     362            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     363            return 10;
     364        }
     365        // Attempt to allocate with negative order
     366        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     367        if(psPolynomial3DAlloc(1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
     368            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     369            return 11;
     370        }
     371    */
    372372    return 0;
    373373}
     
    431431    psFree(my3DDPoly);
    432432
    433     // Attempt to allocate with negative order
    434     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    435     if(psDPolynomial3DAlloc(-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
    436         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    437         return 9;
    438     }
    439     // Attempt to allocate with negative order
    440     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    441     if(psDPolynomial3DAlloc(1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
    442         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    443         return 10;
    444     }
    445     // Attempt to allocate with negative order
    446     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    447     if(psDPolynomial3DAlloc(1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
    448         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    449         return 11;
    450     }
    451 
     433    /*    // Attempt to allocate with negative order
     434        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     435        if(psDPolynomial3DAlloc(-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
     436            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     437            return 9;
     438        }
     439        // Attempt to allocate with negative order
     440        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     441        if(psDPolynomial3DAlloc(1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
     442            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     443            return 10;
     444        }
     445        // Attempt to allocate with negative order
     446        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     447        if(psDPolynomial3DAlloc(1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
     448            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     449            return 11;
     450        }
     451    */
    452452    return 0;
    453453}
     
    519519    psFree(my4DPoly);
    520520
    521     // Attempt to allocate with negative order
    522     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    523     if(psPolynomial4DAlloc(-1,1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
    524         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    525         return 10;
    526     }
    527     // Attempt to allocate with negative order
    528     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    529     if(psPolynomial4DAlloc(1,-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
    530         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    531         return 11;
    532     }
    533     // Attempt to allocate with negative order
    534     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    535     if(psPolynomial4DAlloc(1,1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
    536         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    537         return 12;
    538     }
    539     // Attempt to allocate with negative order
    540     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    541     if(psPolynomial4DAlloc(1,1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
    542         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    543         return 13;
    544     }
    545 
     521    /*    // Attempt to allocate with negative order
     522        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     523        if(psPolynomial4DAlloc(-1,1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
     524            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     525            return 10;
     526        }
     527        // Attempt to allocate with negative order
     528        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     529        if(psPolynomial4DAlloc(1,-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
     530            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     531            return 11;
     532        }
     533        // Attempt to allocate with negative order
     534        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     535        if(psPolynomial4DAlloc(1,1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
     536            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     537            return 12;
     538        }
     539        // Attempt to allocate with negative order
     540        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     541        if(psPolynomial4DAlloc(1,1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
     542            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     543            return 13;
     544        }
     545    */
    546546    return 0;
    547547}
     
    613613    psFree(my4DDPoly);
    614614
    615     // Attempt to allocate with negative order
    616     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    617     if(psDPolynomial4DAlloc(-1,1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
    618         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    619         return 10;
    620     }
    621     // Attempt to allocate with negative order
    622     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    623     if(psDPolynomial4DAlloc(1,-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
    624         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    625         return 11;
    626     }
    627     // Attempt to allocate with negative order
    628     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    629     if(psDPolynomial4DAlloc(1,1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
    630         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    631         return 12;
    632     }
    633     // Attempt to allocate with negative order
    634     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    635     if(psDPolynomial4DAlloc(1,1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
    636         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    637         return 13;
    638     }
    639 
    640     return 0;
    641 }
    642 
     615    /*    // Attempt to allocate with negative order
     616        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     617        if(psDPolynomial4DAlloc(-1,1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
     618            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     619            return 10;
     620        }
     621        // Attempt to allocate with negative order
     622        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     623        if(psDPolynomial4DAlloc(1,-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
     624            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     625            return 11;
     626        }
     627        // Attempt to allocate with negative order
     628        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     629        if(psDPolynomial4DAlloc(1,1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
     630            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     631            return 12;
     632        }
     633        // Attempt to allocate with negative order
     634        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     635        if(psDPolynomial4DAlloc(1,1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
     636            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     637            return 13;
     638        }
     639    */
     640    return 0;
     641}
     642
Note: See TracChangeset for help on using the changeset viewer.