IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15712


Ignore:
Timestamp:
Nov 29, 2007, 11:45:08 AM (18 years ago)
Author:
Paul Price
Message:

Removing stupid test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/types/tap_psArray_all.c

    r12781 r15712  
    2020    psLogSetFormat("HLNM");
    2121    psLogSetLevel(PS_LOG_INFO);
    22     plan_tests(32);
     22    plan_tests(31);
    2323
    2424    // testArrayAllocs()
     
    4747        }
    4848
    49         //Tests for psMemCheckArray
    50         //Make sure psMemCheckArray works correctly - return false
    51         {
    52             int j = 2;
    53             ok( !psMemCheckArray(&j),
    54                 "psMemCheckArray:        return false for non-Array input.");
    55         }
    5649        //Tests for psArrayRealloc
    5750        //Now try to reallocate the psArray - bigger
     
    9487            psFree(s32);
    9588        }
    96    
     89
    9790        //Attempt to free a NULL psArray
    9891        psArrayElementsFree(NULL);
     
    116109        psS32 *s2 = (psS32*)psAlloc(sizeof(psS32));
    117110        psS32 *s3 = (psS32*)psAlloc(sizeof(psS32));
    118    
     111
    119112        //Tests for psArrayAdd
    120113        //Attempt to add element to NULL psArray.
     
    138131                 "psArrayAdd:            return array with newly added data.");
    139132        }
    140    
     133
    141134        //Tests for psArrayRemoveData
    142135        //Setup array with 3 elements to test remove function
     
    152145                "psArrayRemoveData:     return true for successful removal.");
    153146        }
    154    
     147
    155148        //Tests for psArrayRemoveIndex
    156149        //Return false for NULL array input
     
    169162                "psArrayRemoveIndex:    return true for successful removal.");
    170163        }
    171    
     164
    172165        psFree(s1);
    173166        psFree(s2);
     
    177170    }
    178171
    179    
     172
    180173    // testArraySetGet()
    181174    {
     
    189182        psS32 *s3 = (psS32*)psAlloc(sizeof(psS32));
    190183        *s3 = 3;
    191    
     184
    192185        //Tests for psArraySet
    193186        //Return false for trying to set a NULL psArray
     
    225218                "psArraySet:            return true for valid negative input position.");
    226219        }
    227    
     220
    228221        //Tests for psArrayGet
    229222        //Return NULL for NULL array input
     
    252245                "psArrayGet:            return correct value for valid position.");
    253246        }
    254    
     247
    255248        psFree(a);
    256249        psFree(s1);
     
    279272        psS32 *s5 = (psS32*)psAlloc(sizeof(psS32));
    280273        psS32 *s6 = (psS32*)psAlloc(sizeof(psS32));
    281    
     274
    282275        //Tests for psArraySort
    283276        //Return NULL for attempt to sort NULL psArray input.
     
    297290                "psArraySort:           return properly sorted psArray.");
    298291        }
    299    
     292
    300293        psFree(s1);
    301294        psFree(s2);
Note: See TracChangeset for help on using the changeset viewer.