| 4 |
|
#include <cppunit/extensions/HelperMacros.h> |
| 5 |
|
#include "math/Quaternion.hpp" |
| 6 |
|
|
| 7 |
< |
using namespace oopse; |
| 7 |
> |
using namespace OpenMD; |
| 8 |
|
|
| 9 |
+ |
typedef Vector<double, 4> Vec4; |
| 10 |
|
class QuaternionTestCase : public CPPUNIT_NS::TestFixture { |
| 11 |
|
CPPUNIT_TEST_SUITE( QuaternionTestCase ); |
| 12 |
|
CPPUNIT_TEST(testConstructors); |
| 13 |
|
CPPUNIT_TEST(testArithmetic); |
| 14 |
|
CPPUNIT_TEST(testAccessEntries); |
| 15 |
< |
CPPUNIT_TEST(testOtherTemplateFunctions); |
| 15 |
> |
CPPUNIT_TEST(testOtherMemberFunctions); |
| 16 |
|
CPPUNIT_TEST_SUITE_END(); |
| 17 |
|
|
| 18 |
|
public: |
| 19 |
|
virtual void setUp(); |
| 19 |
– |
virtual void tearDown(); |
| 20 |
|
|
| 21 |
|
void testConstructors(); |
| 22 |
|
void testArithmetic(); |
| 23 |
|
void testOperators(); |
| 24 |
|
void testAccessEntries(); |
| 25 |
< |
void testOtherTemplateFunctions(); |
| 25 |
> |
void testOtherMemberFunctions(); |
| 26 |
|
|
| 27 |
+ |
private: |
| 28 |
+ |
Quat4d q1; |
| 29 |
+ |
Quat4d q2; |
| 30 |
+ |
Quat4d q3; |
| 31 |
+ |
Quat4d q4; |
| 32 |
+ |
|
| 33 |
|
}; |
| 34 |
|
|
| 35 |
+ |
|
| 36 |
|
#endif //TEST_QUATERNIONTESTCASE_HPP |
| 37 |
|
|