[wadalabfont-kit] / jis2prim / AssumptionTest.h  

Annotation of /jis2prim/AssumptionTest.h

Parent Directory | Revision Log

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

1 : ktanaka 1.1 #ifndef _ASSUMPTION_TEST_H
2 :     #define _ASSUMPTION_TEST_H
3 :     #include <cppunit/TestCase.h>
4 :     #include <cppunit/TestCaller.h>
5 :     #include <cppunit/TestSuite.h>
6 :     #include <cppunit/TestResult.h>
7 :     #include <cppunit/TextTestRunner.h>
8 :     #include "Assumption.h"
9 :    
10 :     using namespace CppUnit;
11 :    
12 :     class AssumptionTest : public TestCase {
13 :     private:
14 :     Assumption *a1;
15 :     public:
16 :     void setUp(){
17 :     a1=new Assumption();
18 : ktanaka 1.2 a1->add(AndAssumption().add(SimpleAssumption((PtypeMask)(YokoMask|TenMask),JointStart,0,0,90,0)));
19 : ktanaka 1.1 }
20 :     void tearDown(){
21 :     delete a1;
22 :     }
23 :     void testShow(){
24 :     cout << *a1;
25 :     }
26 :     static Test *suite(){
27 :     TestSuite *suiteOfTests = new TestSuite;
28 :     suiteOfTests->addTest (new TestCaller<AssumptionTest>("testShow", &AssumptionTest::testShow));
29 :     return suiteOfTests;
30 :     }
31 :     };
32 :    
33 :    
34 :     #endif /* _ASSUMPTION_TEST_H */

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help