| 1 | #ifndef VELOCITYPROFILETEST_HPP |
| 2 | #define VELOCITYPROFILETEST_HPP |
| 3 | |
| 4 | #include <cppunit/extensions/HelperMacros.h> |
| 5 | #include <velocityprofile_trap.hpp> |
| 6 | #include <velocityprofile_traphalf.hpp> |
| 7 | #include <velocityprofile_dirac.hpp> |
| 8 | |
| 9 | class VelocityProfileTest : public CppUnit::TestFixture |
| 10 | { |
| 11 | CPPUNIT_TEST_SUITE(VelocityProfileTest); |
| 12 | CPPUNIT_TEST(TestTrap_MaxVelocity1); |
| 13 | CPPUNIT_TEST(TestTrap_MaxVelocity2); |
| 14 | CPPUNIT_TEST(TestTrap_MaxVelocity3); |
| 15 | CPPUNIT_TEST(TestTrap_SetDuration1); |
| 16 | |
| 17 | CPPUNIT_TEST(TestTrapHalf_SetProfile_Start); |
| 18 | CPPUNIT_TEST(TestTrapHalf_SetProfile_End); |
| 19 | CPPUNIT_TEST(TestTrapHalf_SetDuration_Start); |
| 20 | CPPUNIT_TEST(TestTrapHalf_SetDuration_End); |
| 21 | |
| 22 | CPPUNIT_TEST(TestDirac_SetProfile); |
| 23 | CPPUNIT_TEST(TestDirac_SetProfileDuration); |
| 24 | |
| 25 | CPPUNIT_TEST_SUITE_END(); |
| 26 | |
| 27 | public: |
| 28 | void setUp(); |
| 29 | void tearDown(); |
| 30 | |
| 31 | void TestTrap_MaxVelocity1(); |
| 32 | void TestTrap_MaxVelocity2(); |
| 33 | void TestTrap_MaxVelocity3(); |
| 34 | void TestTrap_SetDuration1(); |
| 35 | |
| 36 | void TestTrapHalf_SetProfile_Start(); |
| 37 | void TestTrapHalf_SetProfile_End(); |
| 38 | void TestTrapHalf_SetDuration_Start(); |
| 39 | void TestTrapHalf_SetDuration_End(); |
| 40 | |
| 41 | void TestDirac_SetProfile(); |
| 42 | void TestDirac_SetProfileDuration(); |
| 43 | }; |
| 44 | |
| 45 | #endif |
| 46 |