mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
Skeleton unit test for array class
svn-id: r13556
This commit is contained in:
parent
2a02291537
commit
3b206ee83e
19
test/common/array.h
Normal file
19
test/common/array.h
Normal 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() );
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user