| 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 | 
  | 
  | 
using namespace oopse; | 
| 8 | 
  | 
  | 
 | 
| 9 | 
  | 
  | 
class QuaternionTestCase : public CPPUNIT_NS::TestFixture { | 
| 10 | 
  | 
  | 
    CPPUNIT_TEST_SUITE( QuaternionTestCase ); | 
| 11 | 
  | 
  | 
    CPPUNIT_TEST(testConstructors); | 
| 12 | 
  | 
  | 
    CPPUNIT_TEST(testArithmetic); | 
| 13 | 
  | 
  | 
    CPPUNIT_TEST(testAccessEntries); | 
| 14 | 
  | 
  | 
    CPPUNIT_TEST(testOtherTemplateFunctions); | 
| 15 | 
  | 
  | 
    CPPUNIT_TEST_SUITE_END(); | 
| 16 | 
  | 
  | 
 | 
| 17 | 
  | 
  | 
    public: | 
| 18 | 
  | 
  | 
        virtual void setUp(); | 
| 19 | 
  | 
  | 
        virtual void tearDown(); | 
| 20 | 
  | 
  | 
 | 
| 21 | 
  | 
  | 
        void testConstructors(); | 
| 22 | 
  | 
  | 
        void testArithmetic(); | 
| 23 | 
  | 
  | 
        void testOperators(); | 
| 24 | 
  | 
  | 
        void testAccessEntries(); | 
| 25 | 
  | 
  | 
        void testOtherTemplateFunctions(); | 
| 26 | 
  | 
  | 
         | 
| 27 | 
  | 
  | 
}; | 
| 28 | 
  | 
  | 
 | 
| 29 | 
  | 
  | 
#endif //TEST_QUATERNIONTESTCASE_HPP | 
| 30 | 
  | 
  | 
 |