ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/test/math/Vector3TestCase.hpp
Revision: 1595
Committed: Tue Oct 19 04:21:07 2004 UTC (19 years, 10 months ago) by tim
File size: 885 byte(s)
Log Message:
implement more test cases

File Contents

# User Rev Content
1 tim 1593 #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     CPPUNIT_TEST(testAccessEntries);
14     CPPUNIT_TEST(testOtherTemplateFunctions);
15     CPPUNIT_TEST_SUITE_END();
16    
17     public:
18     virtual void setUp();
19     virtual void tearDown();
20     void testConstructors();
21     void testArithmetic();
22     void testOperators();
23     void testAccessEntries();
24     void testOtherTemplateFunctions();
25 tim 1595 private:
26     Vector3d zero;
27     Vector3d one;
28     Vector3d two;
29     Vector3d v1;
30     Vector3d v2;
31     Vector3d v3;
32 tim 1593 };
33    
34     #endif //TEST_VECTO3RTESTCASE_HPP