LRAUV  revA
FlexArray_Test.h
Go to the documentation of this file.
1 
9 #ifndef _FLEXARRAY_TEST_H_
10 #define _FLEXARRAY_TEST_H_
11 
12 #include "utils/FlexArray.h"
13 #include "utils/Str.h"
14 
15 #include <cxxtest/TestSuite.h>
16 
22 class FlexArray_Test : public CxxTest::TestSuite
23 {
24 public:
25 
27  void testPush( void )
28  {
29  FlexArray<Str*> array( false );
30  Str str0( "0" );
31  Str str1( "1" );
32  TS_ASSERT_EQUALS( array.size(), 0U );
33  array.push( &str0 );
34  TS_ASSERT_EQUALS( array.size(), 1U );
35  array.push( &str1 );
36  TS_ASSERT_EQUALS( array.size(), 2U );
37  }
38 };
39 
40 #endif // _FLEXARRAY_TEST_H
void push(T item)
Definition: FlexArray.h:160
void testPush(void)
FlexArray Test - heap-allocated storage.
Definition: FlexArray_Test.h:27
Contains the FlexArrayBase and FlexArray class declarations.
unsigned int size() const
Definition: FlexArray.cpp:69
Replacement for standard template class string.
Definition: Str.h:12
Units tests for class FlexArray
Definition: FlexArray_Test.h:22