[wadalabfont-kit] / jis2prim / BitmapFontFileTest.cc  

View of /jis2prim/BitmapFontFileTest.cc

Parent Directory | Revision Log
Revision: 1.1 - (download) (as text) (annotate)
Tue Aug 20 11:10:36 2002 UTC (22 years, 3 months ago) by ktanaka
Branch: MAIN
CVS Tags: SNAP-20040518, SNAP-20030702, SNAP-20030630, SNAP-20030624, HEAD
*** empty log message ***
#include <strstream>
#include "BitmapFontFileTest.h"

static char *showImage=
".....................@@.\n"
"@@@@@@@@@@@@@@@@@@@@@@@@\n"
"........@@....@@........\n"
"........@@....@@........\n"
"........@@....@@........\n"
"........@@....@@........\n"
"..@.....@@....@@....@@..\n"
"..@@@@@@@@@@@@@@@@@@@@@.\n"
"..@@....@@....@@....@@..\n"
"..@@....@@....@@....@@..\n"
"..@@....@@....@@....@@..\n"
"..@@....@@....@@....@@..\n"
"..@@....@@....@@....@@..\n"
"..@@....@@....@@....@@..\n"
"..@@@@@@@@@@@@@@@@@@@@..\n"
"..@@....@@....@@....@@..\n"
"........@@....@@........\n"
"........@@....@@........\n"
"........@@....@@........\n"
"........@@....@@........\n"
"........@@....@@........\n"
"........@@....@@.....@@.\n"
"@@@@@@@@@@@@@@@@@@@@@@@@\n"
"........................\n";

void BitmapFontFileTest::setUp(){
  ff=new BitmapFontFile("jiskan24.bdf");
}
void BitmapFontFileTest::tearDown(){
  delete ff;
}
void BitmapFontFileTest::testShow(){
  std::ostrstream os;
  os << ff->find(0x3021);
  os.freeze();
  CPPUNIT_ASSERT( os.pcount() == strlen(showImage));
  CPPUNIT_ASSERT( !strncmp(os.str(),showImage,sizeof(showImage)));
}

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help