[wadalabfont-kit] / jis2prim / BitmapFontFileTest.h  

View of /jis2prim/BitmapFontFileTest.h

Parent Directory | Revision Log
Revision: 1.2 - (download) (as text) (annotate)
Tue Aug 6 06:30:43 2002 UTC (22 years, 3 months ago) by ktanaka
Branch: MAIN
Changes since 1.1: +1 -1 lines
*** empty log message ***
#ifndef _BITMAP_FONT_FILE_TEST_H
#define _BITMAP_FONT_FILE_TEST_H
#include <cppunit/TestCase.h>
#include <cppunit/TestCaller.h>
#include <cppunit/TestSuite.h>
#include <cppunit/TestResult.h>
#include <cppunit/TextTestRunner.h>
#include "BitmapFontFile.h"

using namespace CppUnit;

class BitmapFontFileTest : public TestCase {
 private:
  BitmapFontFile *ff;
 public:
  void setUp(){
    ff=new BitmapFontFile("jiskan24.bdf");
  }
  void tearDown(){
    delete ff;
  }
  void testShow(){
    std::cout << ff->find(0x3021);
  }
  static Test *suite(){
    TestSuite *suiteOfTests = new TestSuite;
    suiteOfTests->addTest (new TestCaller<BitmapFontFileTest>("testShow", &BitmapFontFileTest::testShow));
    return suiteOfTests;
  }
};
#endif /* _BITMAP_FONT_FILE_TEST_H */

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help