aboutsummaryrefslogtreecommitdiff
path: root/test/common/list.h
diff options
context:
space:
mode:
authorMax Horn2003-12-24 16:16:00 +0000
committerMax Horn2003-12-24 16:16:00 +0000
commit1af37210a6d402680c7ede3cd96126e6ed7a2634 (patch)
treeaa31f7a7e32a61cc98f73c3ca42169c2095d68bc /test/common/list.h
parent3472e930513cce9268d99bee7a69aa29ee9720af (diff)
downloadscummvm-rg350-1af37210a6d402680c7ede3cd96126e6ed7a2634.tar.gz
scummvm-rg350-1af37210a6d402680c7ede3cd96126e6ed7a2634.tar.bz2
scummvm-rg350-1af37210a6d402680c7ede3cd96126e6ed7a2634.zip
simple unit tests for List/Map/String classes
svn-id: r11886
Diffstat (limited to 'test/common/list.h')
-rw-r--r--test/common/list.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/common/list.h b/test/common/list.h
new file mode 100644
index 0000000000..b52a9c0f21
--- /dev/null
+++ b/test/common/list.h
@@ -0,0 +1,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() );
+ }
+};