IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7108


Ignore:
Timestamp:
May 11, 2006, 1:14:49 PM (20 years ago)
Author:
drobbin
Message:

changed return values so that SetOffset loop doesn't return 0 by mistake.

File:
1 edited

Legend:

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

    r5821 r7108  
    1010*
    1111*
    12 *    @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    13 *    @date  $Date: 2005-12-21 00:03:03 $
    14 *    @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    15 *    @date  $Date: 2005-12-21 00:03:03 $
     12*    @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     13*    @date  $Date: 2006-05-11 23:14:49 $
     14*    @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     15*    @date  $Date: 2006-05-11 23:14:49 $
    1616*
    1717*    Copyright 2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    780780            psError(PS_ERR_UNKNOWN,true,"Testpoint %d: Result out->r = %lg not equal to expected %lg",
    781781                    i, out->r, setOffsetResult[i][0]);
    782             return i*10;
     782            return i*10+1;
    783783        }
    784784        if(fabs(out->d - setOffsetResult[i][1]) > ERROR_TOL) {
    785785            psError(PS_ERR_UNKNOWN,true,"Testpoint %d: Result out->d = %lg not equal to expected %lg",
    786786                    i,out->d, setOffsetResult[i][1]);
    787             return i*10+1;
     787            return i*10+2;
    788788        }
    789789
     
    923923            psError(PS_ERR_UNKNOWN,true,"Testpoint %d: Result out->r = %lg not equal to expected %lg",
    924924                    i, out->r, getOffsetResult[i][0]);
    925             return i*10;
     925            return i*10+1;
    926926        }
    927927        if(fabs(out->d - getOffsetResult[i][1]) > ERROR_TOL) {
    928928            psError(PS_ERR_UNKNOWN,true,"Testpoint %d: Result out->d = %lg not equal to expected %lg",
    929929                    i,out->d, getOffsetResult[i][1]);
    930             return i*10+1;
     930            return i*10+2;
    931931        }
    932932
Note: See TracChangeset for help on using the changeset viewer.