#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 <iostream> |
#include <vector> |
#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,0))); |
void testShow(); |
} |
|
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; |
|
} |
|
}; |
}; |
|
|
|
|