aboutsummaryrefslogtreecommitdiff
path: root/test/common/list.h
blob: b52a9c0f21fc07b7a13e903a03e5d97b6207a676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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() );
	}
};