From 3b206ee83e190eb9213404213bd72568dfb9d09c Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 12 Apr 2004 01:19:39 +0000 Subject: Skeleton unit test for array class svn-id: r13556 --- test/common/array.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/common/array.h (limited to 'test/common/array.h') 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 + +#include "stdafx.h" +#include "common/array.h" + +class ArrayTestSuite : public CxxTest::TestSuite +{ + public: + void test_isEmpty_clear( void ) + { + Common::Array array; + TS_ASSERT( array.isEmpty() ); + array.push_back(17); + array.push_back(33); + TS_ASSERT( !array.isEmpty() ); + array.clear(); + TS_ASSERT( array.isEmpty() ); + } +}; -- cgit v1.2.3