IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 4, 2007, 3:10:22 PM (19 years ago)
Author:
gusciora
Message:

Improved test coverage, added memory leak checks, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astro/tap_psCoord.c

    r13084 r13623  
    55*  @author GLG, MHPCC
    66*
    7 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2007-05-01 00:08:52 $
     7*  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2007-06-05 01:10:22 $
    99*
    1010*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5050        psPlaneTransform *myPT = psPlaneTransformAlloc(ORDER_X, ORDER_Y);
    5151        ok(myPT != NULL, "psPlaneTransformAlloc() returned non-NULL");
    52         skip_start(myPT == NULL, 6, "Skipping tests because psPlaneTransformAlloc() returned NULL");
     52        skip_start(myPT == NULL, 4, "Skipping tests because psPlaneTransformAlloc() returned NULL");
    5353        ok(myPT->x->nX == ORDER_X, "psPlaneTransform->x->nX set correctly");
    5454        ok(myPT->y->nX == ORDER_X, "psPlaneTransform->y->nX set correctly");
     
    6464
    6565        myPT = psPlaneTransformAlloc(1, -1);
    66         ok(myPT == NULL, "psPlaneTransformAlloc(1, -11) returned NULL");
     66        ok(myPT == NULL, "psPlaneTransformAlloc(1, -1) returned NULL");
    6767        psFree(myPT);
    6868
     
    127127            in->yErr = 0.0;
    128128
    129             // XXX: psPlane *out = psPlaneTransformApply(out, pt, in); causes a seg-fault.  Why?
     129            // XXX: psPlane *out = psPlaneTransformApply(out, pt, in); causes a seg-fault.
     130            // Why?
    130131            psPlane *out = psPlaneTransformApply(NULL, pt, in);
    131132            if(out == NULL) {
     
    154155
    155156    // psPlaneTransformApply should generate error message for NULL psPlaneTransform
    156     if (1) {
     157    {
    157158        psMemId id = psMemGetId();
    158159        psPlane* in = psPlaneAlloc();
     
    165166
    166167    // psPlaneTransformApply should generate error message for NULL x coeff psPlaneTransform
    167     if (1) {
     168    {
    168169        psMemId id = psMemGetId();
    169170        psPlane *in = psPlaneAlloc();
     
    180181
    181182    // psPlaneTransformApply Should generate error message for NULL y coeff psPlaneTransform");
    182     if (1) {
     183    {
    183184        psMemId id = psMemGetId();
    184185        psPlane* in = psPlaneAlloc();
     
    195196
    196197    // psPlaneTransformApply() should generate error message for NULL psPlane");
    197     if (1) {
     198    {
    198199        psMemId id = psMemGetId();
    199200        psPlaneTransform* pt = psPlaneTransformAlloc(2,2);
Note: See TracChangeset for help on using the changeset viewer.