ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/test/math/SquareMatrixTestCase.hpp
Revision: 1571
Committed: Fri Oct 15 15:19:28 2004 UTC (19 years, 9 months ago) by tim
File size: 1219 byte(s)
Log Message:
add SquareMatrixTestCase class

File Contents

# Content
1 #ifndef TEST_SQUAREMATRIXTESTCASE_HPP
2 #define TEST_SQUAREMATRIXTESTCASE_HPP
3
4 #include <cppunit/extensions/HelperMacros.h>
5 #include "math/SquareMatrix.hpp"
6
7 using namespace oopse;
8
9 typedef SquareMatrix<double, 3> SMat3x3;
10
11 class SquareMatrixTestCase : public CPPUNIT_NS::TestFixture {
12 CPPUNIT_TEST_SUITE( SquareMatrixTestCase );
13 CPPUNIT_TEST(testConstructor);
14 CPPUNIT_TEST(testIdentity);
15 CPPUNIT_TEST(testInverse);
16 CPPUNIT_TEST(testDeterminant);
17 CPPUNIT_TEST(testTrace);
18 CPPUNIT_TEST(testIsSymmertric);
19 CPPUNIT_TEST(testIsOrthogonal);
20 CPPUNIT_TEST(testIsDiagonal);
21 CPPUNIT_TEST(testIsUnitMatrix);
22 CPPUNIT_TEST_SUITE_END();
23
24 public:
25 virtual void setUp();
26
27 void testConstructor();
28 void testIdentity();
29 void testInverse();
30 void testDeterminant();
31 void testTrace();
32 void testIsSymmertric();
33 void testIsOrthogonal();
34 void testIsDiagonal();
35 void testIsUnitMatrix();
36
37 private:
38
39 SMat3x3 identMat;
40 SMat3x3 invMat;
41 SMat3x3 symMat;
42 SMat3x3 ortMat;
43 SMat3x3 diagMat;
44 SMat3x3 unitMat;
45
46 };
47
48 #endif // TEST_SQUAREMATRIXTESTCASE_HPP

Properties

Name Value
svn:executable *