#include #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))); }