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