1 | /*
|
---|
2 | * ContinuousValueTest.hpp
|
---|
3 | *
|
---|
4 | * Created on: Sep 29, 2011
|
---|
5 | * Author: heber
|
---|
6 | */
|
---|
7 | #ifndef CONTINUOUSVALUETEST_HPP_
|
---|
8 | #define CONTINUOUSVALUETEST_HPP_
|
---|
9 |
|
---|
10 | // include config.h
|
---|
11 | #ifdef HAVE_CONFIG_H
|
---|
12 | #include <config.h>
|
---|
13 | #endif
|
---|
14 |
|
---|
15 | #include <string>
|
---|
16 |
|
---|
17 | #include <cppunit/extensions/HelperMacros.h>
|
---|
18 |
|
---|
19 | #include "LinearAlgebra/Vector.hpp"
|
---|
20 |
|
---|
21 | template<class T> struct range;
|
---|
22 | class Vector;
|
---|
23 |
|
---|
24 | class ContinuousValueTest : public CppUnit::TestFixture
|
---|
25 | {
|
---|
26 | CPPUNIT_TEST_SUITE( ContinuousValueTest ) ;
|
---|
27 | CPPUNIT_TEST ( isValidIntAsStringTest );
|
---|
28 | CPPUNIT_TEST ( isValidIntTest );
|
---|
29 | CPPUNIT_TEST ( setgetValidIntRangeTest );
|
---|
30 | CPPUNIT_TEST ( settergetterIntAsStringTest );
|
---|
31 | CPPUNIT_TEST ( settergetterIntTest );
|
---|
32 | CPPUNIT_TEST ( comparatorIntTest );
|
---|
33 | CPPUNIT_TEST ( isValidVectorAsStringTest );
|
---|
34 | CPPUNIT_TEST ( isValidVectorTest );
|
---|
35 | CPPUNIT_TEST ( setgetValidVectorRangeTest );
|
---|
36 | CPPUNIT_TEST ( settergetterVectorAsStringTest );
|
---|
37 | CPPUNIT_TEST ( settergetterVectorTest );
|
---|
38 | CPPUNIT_TEST ( comparatorVectorTest );
|
---|
39 | CPPUNIT_TEST_SUITE_END();
|
---|
40 |
|
---|
41 | public:
|
---|
42 | void setUp();
|
---|
43 | void tearDown();
|
---|
44 |
|
---|
45 | void isValidIntAsStringTest();
|
---|
46 | void isValidIntTest();
|
---|
47 | void setgetValidIntRangeTest();
|
---|
48 | void settergetterIntAsStringTest();
|
---|
49 | void settergetterIntTest();
|
---|
50 | void comparatorIntTest();
|
---|
51 |
|
---|
52 | void isValidVectorAsStringTest();
|
---|
53 | void isValidVectorTest();
|
---|
54 | void setgetValidVectorRangeTest();
|
---|
55 | void settergetterVectorAsStringTest();
|
---|
56 | void settergetterVectorTest();
|
---|
57 | void comparatorVectorTest();
|
---|
58 |
|
---|
59 | private:
|
---|
60 | range<int> *ValidIntRange;
|
---|
61 | range<Vector> *ValidVectorRange;
|
---|
62 | };
|
---|
63 |
|
---|
64 | #endif /* CONTINUOUSVALUETEST_HPP_ */
|
---|