| 1 |
tim |
100 |
#ifndef TEST_VECTOR3TESTCASE_HPP |
| 2 |
|
|
#define TEST_VECTOR3TESTCASE_HPP |
| 3 |
|
|
|
| 4 |
|
|
#include <cppunit/extensions/HelperMacros.h> |
| 5 |
|
|
#include "math/Vector3.hpp" |
| 6 |
|
|
|
| 7 |
|
|
using namespace oopse; |
| 8 |
|
|
|
| 9 |
|
|
class Vector3TestCase : public CPPUNIT_NS::TestFixture { |
| 10 |
|
|
CPPUNIT_TEST_SUITE( Vector3TestCase ); |
| 11 |
|
|
CPPUNIT_TEST(testConstructors); |
| 12 |
|
|
CPPUNIT_TEST(testArithmetic); |
| 13 |
tim |
110 |
CPPUNIT_TEST(testOperators); |
| 14 |
tim |
100 |
CPPUNIT_TEST(testAccessEntries); |
| 15 |
|
|
CPPUNIT_TEST(testOtherTemplateFunctions); |
| 16 |
|
|
CPPUNIT_TEST_SUITE_END(); |
| 17 |
|
|
|
| 18 |
|
|
public: |
| 19 |
|
|
virtual void setUp(); |
| 20 |
|
|
virtual void tearDown(); |
| 21 |
|
|
void testConstructors(); |
| 22 |
|
|
void testArithmetic(); |
| 23 |
|
|
void testOperators(); |
| 24 |
|
|
void testAccessEntries(); |
| 25 |
|
|
void testOtherTemplateFunctions(); |
| 26 |
tim |
102 |
private: |
| 27 |
|
|
Vector3d zero; |
| 28 |
|
|
Vector3d one; |
| 29 |
|
|
Vector3d two; |
| 30 |
|
|
Vector3d v1; |
| 31 |
|
|
Vector3d v2; |
| 32 |
|
|
Vector3d v3; |
| 33 |
tim |
100 |
}; |
| 34 |
|
|
|
| 35 |
|
|
#endif //TEST_VECTO3RTESTCASE_HPP |