mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-01 15:09:47 +00:00
1af37210a6
svn-id: r11886
20 lines
360 B
C++
20 lines
360 B
C++
#include <cxxtest/TestSuite.h>
|
|
|
|
#include "stdafx.h"
|
|
#include "common/list.h"
|
|
|
|
class ListTestSuite : public CxxTest::TestSuite
|
|
{
|
|
public:
|
|
void test_isEmpty_clear( void )
|
|
{
|
|
Common::List<int> list;
|
|
TS_ASSERT( list.isEmpty() );
|
|
list.push_back(17);
|
|
list.push_back(33);
|
|
TS_ASSERT( !list.isEmpty() );
|
|
list.clear();
|
|
TS_ASSERT( list.isEmpty() );
|
|
}
|
|
};
|