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

# Content
1 #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 class VectorTestCase : public CPPUNIT_NS::TestFixture {
14 CPPUNIT_TEST_SUITE( VectorTestCase );
15 CPPUNIT_TEST(testConstructors);
16 CPPUNIT_TEST(testArithmetic);
17 CPPUNIT_TEST(testAccessEntries);
18 CPPUNIT_TEST(testOtherTemplateFunctions);
19 CPPUNIT_TEST_SUITE_END();
20
21 public:
22 virtual void setUp();
23 virtual void tearDown();
24
25 void testConstructors();
26 void testArithmetic();
27 void testOperators();
28 void testAccessEntries();
29 void testOtherTemplateFunctions();
30
31 };
32
33 #endif //TEST_VECTORTESTCASE_HPP