[wadalabfont-kit] / jis2prim / AssumptionTest.h  

Annotation of /jis2prim/AssumptionTest.h

Parent Directory | Revision Log

Revision: 1.3 - (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 : ktanaka 1.3 #include <iostream>
10 :     #include <vector>
11 : ktanaka 1.1
12 :     using namespace CppUnit;
13 :    
14 :     class AssumptionTest : public TestCase {
15 :     private:
16 :     Assumption *a1;
17 :     public:
18 :     void setUp(){
19 :     a1=new Assumption();
20 : ktanaka 1.2 a1->add(AndAssumption().add(SimpleAssumption((PtypeMask)(YokoMask|TenMask),JointStart,0,0,90,0)));
21 : ktanaka 1.1 }
22 :     void tearDown(){
23 :     delete a1;
24 :     }
25 :     void testShow(){
26 : ktanaka 1.3 std::cout << *a1;
27 : ktanaka 1.1 }
28 :     static Test *suite(){
29 :     TestSuite *suiteOfTests = new TestSuite;
30 :     suiteOfTests->addTest (new TestCaller<AssumptionTest>("testShow", &AssumptionTest::testShow));
31 :     return suiteOfTests;
32 :     }
33 :     };
34 :    
35 :    
36 :     #endif /* _ASSUMPTION_TEST_H */

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help