aboutsummaryrefslogtreecommitdiff
path: root/test/common/array.h
diff options
context:
space:
mode:
authorMax Horn2004-04-12 01:19:39 +0000
committerMax Horn2004-04-12 01:19:39 +0000
commit3b206ee83e190eb9213404213bd72568dfb9d09c (patch)
treef739bc2a449c549d7b126e048c21143379213f25 /test/common/array.h
parent2a02291537a326947328683f18c142797e3f00ba (diff)
downloadscummvm-rg350-3b206ee83e190eb9213404213bd72568dfb9d09c.tar.gz
scummvm-rg350-3b206ee83e190eb9213404213bd72568dfb9d09c.tar.bz2
scummvm-rg350-3b206ee83e190eb9213404213bd72568dfb9d09c.zip
Skeleton unit test for array class
svn-id: r13556
Diffstat (limited to 'test/common/array.h')
-rw-r--r--test/common/array.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/common/array.h b/test/common/array.h
new file mode 100644
index 0000000000..94239a9783
--- /dev/null
+++ b/test/common/array.h
@@ -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() );
+ }
+};