[wadalabfont-kit] / jis2prim / BitmapFontFileTest.h  

View of /jis2prim/BitmapFontFileTest.h

Parent Directory | Revision Log
Revision: 1.1 - (download) (as text) (annotate)
Thu Feb 21 11:57:39 2002 UTC (22 years, 9 months ago) by ktanaka
Branch: MAIN
*** 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(){
    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