diff options
author | Max Horn | 2004-04-12 01:19:39 +0000 |
---|---|---|
committer | Max Horn | 2004-04-12 01:19:39 +0000 |
commit | 3b206ee83e190eb9213404213bd72568dfb9d09c (patch) | |
tree | f739bc2a449c549d7b126e048c21143379213f25 | |
parent | 2a02291537a326947328683f18c142797e3f00ba (diff) | |
download | scummvm-rg350-3b206ee83e190eb9213404213bd72568dfb9d09c.tar.gz scummvm-rg350-3b206ee83e190eb9213404213bd72568dfb9d09c.tar.bz2 scummvm-rg350-3b206ee83e190eb9213404213bd72568dfb9d09c.zip |
Skeleton unit test for array class
svn-id: r13556
-rw-r--r-- | test/common/array.h | 19 |
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() ); + } +}; |