IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 23, 2005, 2:17:44 PM (21 years ago)
Author:
drobbin
Message:

Updated, fixed, and added error tests to the Set/Get functions & tests

Location:
trunk/psLib/test/mathtypes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/mathtypes/tst_psVector.c

    r5089 r5114  
    1414 *  @author  Ross Harman, MHPCC
    1515 *
    16  *  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
    17  *  @date  $Date: 2005-09-22 02:32:00 $
     16 *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
     17 *  @date  $Date: 2005-09-24 00:17:44 $
    1818 *
    1919 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    391391    psVector *vec = NULL;
    392392    vec = psVectorAlloc(5, PS_TYPE_S32);
     393    vec->n = 0;
    393394
    394395    if ( !psVectorSet(vec, 0, 10) )
     
    396397    if ( psVectorSet(vec, 10, 10) )
    397398        fprintf(stderr, "VectorSet Improperly set S32 at out of range position\n");
    398     if ( !psVectorSet(vec, -1, 4) )
    399         fprintf(stderr, "VectorSet Failed to set S32 at position 4\n");
     399    if ( !psVectorSet(vec, 1, 4) )
     400        fprintf(stderr, "VectorSet Failed to set S32 at position 1\n");
    400401    if ( (psS32)psVectorGet(vec, 0) != 10 )
    401402        fprintf(stderr, "VectorGet Failed to return the correct S32 from position 0\n");
  • trunk/psLib/test/mathtypes/verified/tst_psImage.stderr

    r5101 r5114  
    138138\**********************************************************************************/
    139139
     140<DATE><TIME>|<HOST>|E|psImageSet (FILE:LINENO)
     141    Invalid position.  Position too large
    140142
    141143---> TESTPOINT PASSED (psImage{psImageInit} | tst_psImage.c)
  • trunk/psLib/test/mathtypes/verified/tst_psVector.stderr

    r5089 r5114  
    6464\**********************************************************************************/
    6565
     66<DATE><TIME>|<HOST>|E|psVectorSet (FILE:LINENO)
     67    Invalid position.  Number too large
    6668
    6769---> TESTPOINT PASSED (psVector{psVectorGet/Set} | tst_psVector.c)
Note: See TracChangeset for help on using the changeset viewer.