source: LinearAlgebra/src/unittests/VectorUnitTest.hpp@ 7305d5

Last change on this file since 7305d5 was e23075, checked in by Frederik Heber <heber@…>, 13 years ago

Added new VectorSetUnitTest.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*
2 * VectorUnitTest.hpp
3 *
4 * Created on: Aug 17, 2009
5 * Author: heber
6 */
7
8#ifndef VECTORUNITTEST_HPP_
9#define VECTORUNITTEST_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16
17#include <cppunit/extensions/HelperMacros.h>
18
19#include "Vector.hpp"
20
21/********************************************** Test classes **************************************/
22
23class VectorTest : public CppUnit::TestFixture
24{
25 CPPUNIT_TEST_SUITE( VectorTest) ;
26 CPPUNIT_TEST ( AssignmentTest );
27 CPPUNIT_TEST ( UnityTest );
28 CPPUNIT_TEST ( SimpleAlgebraTest );
29 CPPUNIT_TEST ( OperatorAlgebraTest );
30 CPPUNIT_TEST ( EuclidianScalarProductTest );
31 CPPUNIT_TEST ( EuclidianNormTest );
32 CPPUNIT_TEST ( EuclidianDistancesTest );
33 CPPUNIT_TEST ( EuclidianAnglesTest );
34 CPPUNIT_TEST ( ProjectionTest );
35 CPPUNIT_TEST ( NormalsTest );
36 CPPUNIT_TEST_SUITE_END();
37
38public:
39 void setUp();
40 void tearDown();
41
42 void AssignmentTest();
43 void UnityTest();
44 void OperatorAlgebraTest();
45 void SimpleAlgebraTest();
46 void EuclidianScalarProductTest();
47 void EuclidianNormTest();
48 void EuclidianDistancesTest();
49 void EuclidianAnglesTest();
50 void ProjectionTest();
51 void NormalsTest();
52 void LineIntersectionTest();
53 void VectorRotationTest();
54
55private:
56 // vector to execute tests on, may be modified during run
57 Vector fixture;
58 // never modify these during run, other tests might rely on them
59 Vector zero;
60 Vector unit;
61 Vector otherunit;
62 Vector notunit;
63 Vector two;
64 Vector three;
65};
66
67
68#endif /* VECTORUNITTEST_HPP_ */
Note: See TracBrowser for help on using the repository browser.