[wadalabfont-kit] / jis2prim / BitmapFontTest.h  

Diff of /jis2prim/BitmapFontTest.h

Parent Directory | Revision Log

version 1.2, Fri Feb 22 12:03:48 2002 UTC version 1.3, Tue Aug 6 06:30:43 2002 UTC
Line 6 
Line 6 
 #include <cppunit/TestResult.h>  #include <cppunit/TestResult.h>
 #include <cppunit/TextTestRunner.h>  #include <cppunit/TextTestRunner.h>
 #include "BitmapFont.h"  #include "BitmapFont.h"
   #include <iostream>
   #include <algorithm>
   
 using namespace CppUnit;  using namespace CppUnit;
   
Line 29 
Line 31 
     CPPUNIT_ASSERT( (*a).get(10,100) == false );      CPPUNIT_ASSERT( (*a).get(10,100) == false );
   }    }
   void testShow(){    void testShow(){
     cout << "a\n";      std::cout << "a\n";
     cout << *a << "\n";      std::cout << *a << "\n";
     cout << "space\n";      std::cout << "space\n";
     cout << *space << "\n";      std::cout << *space << "\n";
   }    }
   void testPixel(){    void testPixel(){
     CPPUNIT_ASSERT( (*a).getIndex(pair<int,int>(0,1)) == 2);      CPPUNIT_ASSERT( (*a).getIndex(std::pair<int,int>(0,1)) == 2);
     CPPUNIT_ASSERT( (*a).getIndex(pair<int,int>(22,0)) == 1);      CPPUNIT_ASSERT( (*a).getIndex(std::pair<int,int>(22,0)) == 1);
   }    }
   static Test *suite() {    static Test *suite() {
     TestSuite *suiteOfTests = new TestSuite;      TestSuite *suiteOfTests = new TestSuite;


Generate output suitable for use with a patch program
Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help