[wadalabfont-kit] / jis2prim / BitmapFontFileTest.h  

Annotation of /jis2prim/BitmapFontFileTest.h

Parent Directory | Revision Log

Revision: 1.1 - (view) (download) (as text)

1 : ktanaka 1.1 #ifndef _BITMAP_FONT_FILE_TEST_H
2 :     #define _BITMAP_FONT_FILE_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 :     #include "BitmapFontFile.h"
9 :    
10 :     using namespace CppUnit;
11 :    
12 :     class BitmapFontFileTest : public TestCase {
13 :     private:
14 :     BitmapFontFile *ff;
15 :     public:
16 :     void setUp(){
17 :     ff=new BitmapFontFile("jiskan24.bdf");
18 :     }
19 :     void tearDown(){
20 :     delete ff;
21 :     }
22 :     void testShow(){
23 :     cout << ff->find(0x3021);
24 :     }
25 :     static Test *suite(){
26 :     TestSuite *suiteOfTests = new TestSuite;
27 :     suiteOfTests->addTest (new TestCaller<BitmapFontFileTest>("testShow", &BitmapFontFileTest::testShow));
28 :     return suiteOfTests;
29 :     }
30 :     };
31 :     #endif /* _BITMAP_FONT_FILE_TEST_H */

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help