Added an empty test for AVLTreeMap, but uncommented it, since it doesn't compile with our broken compiler.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3713 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2003-06-28 15:51:58 +00:00
parent e0f43e3e84
commit d2f5407bb8
4 changed files with 55 additions and 1 deletions

View File

@ -0,0 +1,32 @@
#include <AVLTreeMapTest.h>
#include <cppunit/Test.h>
#include <cppunit/TestCaller.h>
#include <cppunit/TestSuite.h>
#include <stdio.h>
#include <TestUtils.h>
#include <AVLTreeMap.h>
AVLTreeMapTest::AVLTreeMapTest(std::string name)
: BTestCase(name)
{
}
CppUnit::Test*
AVLTreeMapTest::Suite()
{
CppUnit::TestSuite *suite = new CppUnit::TestSuite("AVLTreeMap");
suite->addTest(new CppUnit::TestCaller<AVLTreeMapTest>(
"SinglyLinkedList::User Strategy Test (default next parameter)",
&AVLTreeMapTest::Test1));
return suite;
}
//! Test1
void
AVLTreeMapTest::Test1()
{
}

View File

@ -0,0 +1,19 @@
#ifndef _avl_tree_map_test_h_
#define _avl_tree_map_test_h_
#include <TestCase.h>
class AVLTreeMapTest : public BTestCase {
public:
AVLTreeMapTest(std::string name = "");
static CppUnit::Test* Suite();
void Test1();
private:
template <class List>
void TestList(List &list, typename List::ValueType *values, int valueCount);
};
#endif // _avl_tree_map_test_h_

View File

@ -6,7 +6,8 @@ UsePrivateHeaders [ FDirName kernel util ] ;
# we start linking to Be libraries, but it doesn't hurt...
CommonTestLib libkernelutilstest.so
: KernelUtilsTestAddon.cpp
SinglyLinkedListTest.cpp
# AVLTreeMapTest.cpp
SinglyLinkedListTest.cpp
: stdc++.r4
: stdc++.r4
:

View File

@ -1,9 +1,11 @@
#include <TestSuite.h>
#include <TestSuiteAddon.h>
//#include <AVLTreeMapTest.h>
#include <SinglyLinkedListTest.h>
BTestSuite* getTestSuite() {
BTestSuite *suite = new BTestSuite("KernelUtils");
suite->addTest("SinglyLinkedList", SinglyLinkedListTest::Suite());
// suite->addTest("AVLTreeMap", AVLTreeMapTest::Suite());
return suite;
}