diff options
author | Max Horn | 2003-12-24 16:16:00 +0000 |
---|---|---|
committer | Max Horn | 2003-12-24 16:16:00 +0000 |
commit | 1af37210a6d402680c7ede3cd96126e6ed7a2634 (patch) | |
tree | aa31f7a7e32a61cc98f73c3ca42169c2095d68bc /test/common/list.h | |
parent | 3472e930513cce9268d99bee7a69aa29ee9720af (diff) | |
download | scummvm-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.h | 19 |
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() ); + } +}; |