mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 19:36:21 +00:00
3b206ee83e
svn-id: r13556
20 lines
370 B
C++
20 lines
370 B
C++
#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() );
|
|
}
|
|
};
|