[wadalabfont-kit] / jis2prim / AssumptionTest.cc  

Annotation of /jis2prim/AssumptionTest.cc

Parent Directory | Revision Log

Revision: 1.1 - (view) (download) (as text)

1 : ktanaka 1.1 #include <strstream>
2 :     #include "AssumptionTest.h"
3 :    
4 :     void AssumptionTest::setUp(){
5 :     a1=new Assumption();
6 :     a1->add(AndAssumption().add(SimpleAssumption((PtypeMask)(YokoMask|TenMask),JointStart,0,0,90,0)));
7 :     }
8 :     void AssumptionTest::tearDown(){
9 :     delete a1;
10 :     }
11 :     static const char* showImage=
12 :     "SimpleAssumption(pmask=3,jtype=1,x=0,y=0,angle=90,hint=0)";
13 :    
14 :     void AssumptionTest::testShow(){
15 :     std::ostrstream os;
16 :     os << *a1;
17 :     os.freeze();
18 :     CPPUNIT_ASSERT( os.pcount() == strlen(showImage));
19 :     CPPUNIT_ASSERT( !strncmp(os.str(),showImage,sizeof(showImage)));
20 :     }

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help