#include <cppunit/TestSuite.h> |
#include <cppunit/TestSuite.h> |
#include <cppunit/TestResult.h> |
#include <cppunit/TestResult.h> |
#include <cppunit/TextTestRunner.h> |
#include <cppunit/TextTestRunner.h> |
|
#include <cppunit/extensions/HelperMacros.h> |
#include "Assumption.h" |
#include "Assumption.h" |
|
#include <iostream> |
|
#include <vector> |
|
|
using namespace CppUnit; |
class AssumptionTest : public CppUnit::TestFixture { |
|
CPPUNIT_TEST_SUITE( AssumptionTest ); |
class AssumptionTest : public TestCase { |
CPPUNIT_TEST( testShow ); |
|
CPPUNIT_TEST_SUITE_END(); |
private: |
private: |
Assumption *a1; |
Assumption *a1; |
public: |
public: |
void setUp(){ |
void setUp(); |
a1=new Assumption(); |
void tearDown(); |
a1->add(AndAssumption().add(SimpleAssumption((PtypeMask)(YokoMask|TenMask),JointStart,0,0,90))); |
void testShow(); |
} |
|
void tearDown(){ |
|
delete a1; |
|
} |
|
void testShow(){ |
|
cout << *a1; |
|
} |
|
static Test *suite(){ |
|
TestSuite *suiteOfTests = new TestSuite; |
|
suiteOfTests->addTest (new TestCaller<AssumptionTest>("testShow", &AssumptionTest::testShow)); |
|
return suiteOfTests; |
|
} |
|
}; |
}; |
|
|
|
|