ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/test/math/QuaternionTestCase.hpp
Revision: 1390
Committed: Wed Nov 25 20:02:06 2009 UTC (15 years, 5 months ago) by gezelter
Original Path: trunk/test/math/QuaternionTestCase.hpp
File size: 858 byte(s)
Log Message:
Almost all of the changes necessary to create OpenMD out of our old
project (OOPSE-4)

File Contents

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