Skeleton unit test for array class

svn-id: r13556
This commit is contained in:
Max Horn 2004-04-12 01:19:39 +00:00
parent 2a02291537
commit 3b206ee83e

19
test/common/array.h Normal file
View File

@ -0,0 +1,19 @@
#include <cxxtest/TestSuite.h>
#include "stdafx.h"
#include "common/array.h"
class ArrayTestSuite : public CxxTest::TestSuite
{
public:
void test_isEmpty_clear( void )
{
Common::Array<int> array;
TS_ASSERT( array.isEmpty() );
array.push_back(17);
array.push_back(33);
TS_ASSERT( !array.isEmpty() );
array.clear();
TS_ASSERT( array.isEmpty() );
}
};