[wadalabfont-kit] / jis2prim / MatchersTest.h  

Diff of /jis2prim/MatchersTest.h

Parent Directory | Revision Log

version 1.2, Tue Mar 19 00:33:14 2002 UTC version 1.3, Tue Aug 6 06:30:43 2002 UTC
Line 7 
Line 7 
 #include <cppunit/TestResult.h>  #include <cppunit/TestResult.h>
 #include <cppunit/TextTestRunner.h>  #include <cppunit/TextTestRunner.h>
 #include "Matchers.h"  #include "Matchers.h"
   #include <vector>
   #include <iostream>
   
 using namespace CppUnit;  using namespace CppUnit;
   
Line 53 
Line 55 
     delete ff;      delete ff;
   }    }
   void testShow(){    void testShow(){
     cout << *mat << '\n';      std::cout << *mat << '\n';
   }    }
   void testMatch(){    void testMatch(){
     vector<MatchResult> mr=mat->findMatch(*a);      std::vector<MatchResult> mr=mat->findMatch(*a);
     vector<MatchResult>::iterator it;      std::vector<MatchResult>::iterator it;
     for(it=mr.begin();it!=mr.end();it++)      for(it=mr.begin();it!=mr.end();it++)
       cout << *it << '\n';        std::cout << *it << '\n';
   }    }
   void testCover(){    void testCover(){
     for(int code=0x3021;code<=0x307e;code++){      for(int code=0x3021;code<=0x307e;code++){
       BitmapFont bf=ff->find(code);        BitmapFont bf=ff->find(code);
       vector<pixel> nc=mat->notCovered(bf);        std::vector<pixel> nc=mat->notCovered(bf);
       if(!nc.empty()){        if(!nc.empty()){
         cout << "---------------------------------------\n";          std::cout << "---------------------------------------\n";
         cout << bf;          std::cout << bf;
         cout << BitmapFont(bf.getWidth(),bf.getHeight(),nc) ;          std::cout << BitmapFont(bf.getWidth(),bf.getHeight(),nc) ;
       }        }
     }      }
   }    }


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