ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/test/math/VectorTestCase.hpp
Revision: 1593
Committed: Mon Oct 18 21:03:15 2004 UTC (19 years, 8 months ago) by tim
File size: 805 byte(s)
Log Message:
adding more testing units

File Contents

# User Rev Content
1 tim 1588 #ifndef TEST_VECTORTESTCASE_HPP
2     #define TEST_VECTORTESTCASE_HPP
3    
4     #include <cppunit/extensions/HelperMacros.h>
5     #include "math/Vector.hpp"
6    
7     using namespace oopse;
8    
9    
10     typedef Vector<double, 3> Vec3;
11     typedef Vector<double, 4> Vec4;
12    
13 tim 1593 class VectorTestCase : public CPPUNIT_NS::TestFixture {
14     CPPUNIT_TEST_SUITE( VectorTestCase );
15     CPPUNIT_TEST(testConstructors);
16     CPPUNIT_TEST(testArithmetic);
17 tim 1588 CPPUNIT_TEST(testAccessEntries);
18 tim 1593 CPPUNIT_TEST(testOtherTemplateFunctions);
19 tim 1588 CPPUNIT_TEST_SUITE_END();
20    
21     public:
22     virtual void setUp();
23     virtual void tearDown();
24    
25 tim 1593 void testConstructors();
26     void testArithmetic();
27     void testOperators();
28     void testAccessEntries();
29     void testOtherTemplateFunctions();
30 tim 1588
31     };
32    
33     #endif //TEST_VECTORTESTCASE_HPP