#include <cppunit/TestSuite.h> |
#include <cppunit/TestSuite.h> |
#include <cppunit/TestResult.h> |
#include <cppunit/TestResult.h> |
#include <cppunit/TextTestRunner.h> |
#include <cppunit/TextTestRunner.h> |
|
#include <cppunit/extensions/HelperMacros.h> |
#include "BitmapFontFile.h" |
#include "BitmapFontFile.h" |
|
|
using namespace CppUnit; |
class BitmapFontFileTest : public CppUnit::TestFixture { |
|
CPPUNIT_TEST_SUITE( BitmapFontFileTest ); |
class BitmapFontFileTest : public TestCase { |
CPPUNIT_TEST( testShow ); |
|
CPPUNIT_TEST_SUITE_END(); |
private: |
private: |
BitmapFontFile *ff; |
BitmapFontFile *ff; |
public: |
public: |
void setUp(){ |
void setUp(); |
ff=new BitmapFontFile("jiskan24.bdf"); |
void tearDown(); |
} |
void testShow(); |
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 */ |
#endif /* _BITMAP_FONT_FILE_TEST_H */ |