Revision: 1.4 - (view) (download) (as text)
1 : | ktanaka | 1.1 | #ifndef _MATCHERS_TEST_TEST_H |
2 : | #define _MATCHERS_TEST_TEST_H | ||
3 : | #include <cppunit/TestCase.h> | ||
4 : | #include <cppunit/TestCaller.h> | ||
5 : | #include <cppunit/TestSuite.h> | ||
6 : | #include <cppunit/TestResult.h> | ||
7 : | #include <cppunit/TextTestRunner.h> | ||
8 : | ktanaka | 1.4 | #include <cppunit/extensions/HelperMacros.h> |
9 : | ktanaka | 1.1 | #include "Matchers.h" |
10 : | ktanaka | 1.3 | #include <vector> |
11 : | #include <iostream> | ||
12 : | ktanaka | 1.1 | |
13 : | ktanaka | 1.4 | class MatchersTest : public CppUnit::TestFixture { |
14 : | CPPUNIT_TEST_SUITE( MatchersTest ); | ||
15 : | CPPUNIT_TEST( testShow ); | ||
16 : | CPPUNIT_TEST( testMatch ); | ||
17 : | CPPUNIT_TEST( testCover ); | ||
18 : | CPPUNIT_TEST_SUITE_END(); | ||
19 : | ktanaka | 1.1 | private: |
20 : | BitmapFont *a; | ||
21 : | Matchers *mat; | ||
22 : | ktanaka | 1.2 | BitmapFontFile *ff; |
23 : | ktanaka | 1.1 | public: |
24 : | ktanaka | 1.4 | void setUp(); |
25 : | void tearDown(); | ||
26 : | void testShow(); | ||
27 : | void testMatch(); | ||
28 : | void testCover(); | ||
29 : | #if 0 | ||
30 : | ktanaka | 1.1 | static Test *suite(){ |
31 : | TestSuite *suiteOfTests = new TestSuite; | ||
32 : | suiteOfTests->addTest (new TestCaller<MatchersTest>("testShow", &MatchersTest::testShow)); | ||
33 : | suiteOfTests->addTest (new TestCaller<MatchersTest>("testMatch", &MatchersTest::testMatch)); | ||
34 : | ktanaka | 1.2 | suiteOfTests->addTest (new TestCaller<MatchersTest>("testCover", &MatchersTest::testCover)); |
35 : | ktanaka | 1.1 | return suiteOfTests; |
36 : | } | ||
37 : | ktanaka | 1.4 | #endif |
38 : | ktanaka | 1.1 | }; |
39 : | |||
40 : | #endif /* _MATCHERS_TEST_TEST_H */ |
ktanaka Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |