[wadalabfont-kit] / jis2prim / AssumptionTest.h  

View of /jis2prim/AssumptionTest.h

Parent Directory | Revision Log
Revision: 1.3 - (download) (as text) (annotate)
Tue Aug 6 06:30:43 2002 UTC (22 years, 3 months ago) by ktanaka
Branch: MAIN
Changes since 1.2: +3 -1 lines
*** empty log message ***
#ifndef _ASSUMPTION_TEST_H
#define _ASSUMPTION_TEST_H
#include <cppunit/TestCase.h>
#include <cppunit/TestCaller.h>
#include <cppunit/TestSuite.h>
#include <cppunit/TestResult.h>
#include <cppunit/TextTestRunner.h>
#include "Assumption.h"
#include <iostream>
#include <vector>

using namespace CppUnit;

class AssumptionTest : public TestCase {
 private:
  Assumption *a1;
 public:
  void setUp(){
    a1=new Assumption();
    a1->add(AndAssumption().add(SimpleAssumption((PtypeMask)(YokoMask|TenMask),JointStart,0,0,90,0)));
  }
  void tearDown(){
    delete a1;
  }
  void testShow(){
    std::cout << *a1;
  }
  static Test *suite(){
    TestSuite *suiteOfTests = new TestSuite;
    suiteOfTests->addTest (new TestCaller<AssumptionTest>("testShow", &AssumptionTest::testShow));
    return suiteOfTests;
  }
};


#endif /* _ASSUMPTION_TEST_H */

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help