Ported weakset test to CppUnit and added it to the build system.
[tagua/yd.git] / tests / weak_set / weakset_test.h
blob1188ee44ed4a1e135ab8f5482de36ac343cb2bba
1 #ifndef WEAKSETTEST_H
2 #define WEAKSETTEST_H
4 #include <cppunit/extensions/HelperMacros.h>
5 #include <cppunit/TestCaller.h>
6 #include <cppunit/TestResult.h>
7 #include <cppunit/TestFixture.h>
8 #include <cppunit/TestAssert.h>
10 class WeaksetTest : public CppUnit::TestFixture {
11 CPPUNIT_TEST_SUITE(WeaksetTest);
12 CPPUNIT_TEST(test_insertion);
13 CPPUNIT_TEST(test_garbage_collection);
14 CPPUNIT_TEST(test_get);
15 CPPUNIT_TEST(test_empty);
16 CPPUNIT_TEST_SUITE_END();
17 public:
18 void setUp() { }
19 void tearDown() { }
21 void test_insertion();
22 void test_garbage_collection();
23 void test_get();
24 void test_empty();
27 #endif // WEAKSETTEST_H