| 121 | |
| 122 | template<typename T> |
| 123 | void addLinearTest( const std::string &nameSuffix ) |
| 124 | { |
| 125 | static boost::shared_ptr<LinearInterpolatorTest<T> > instance(new LinearInterpolatorTest<T>()); |
| 126 | |
| 127 | auto test = BOOST_CLASS_TEST_CASE( &LinearInterpolatorTest<T>::testSimple, instance ); |
| 128 | test->p_name.set( test->p_name.get() + nameSuffix ); |
| 129 | add( test ); |
| 130 | |
| 131 | test = BOOST_CLASS_TEST_CASE( &LinearInterpolatorTest<T>::testTyped, instance ); |
| 132 | test->p_name.set( test->p_name.get() + nameSuffix ); |
| 133 | add( test ); |
| 134 | |
| 135 | test = BOOST_CLASS_TEST_CASE( &LinearInterpolatorTest<T>::testVector, instance ); |
| 136 | test->p_name.set( test->p_name.get() + nameSuffix ); |
| 137 | add( test ); |
| 138 | } |
| 139 | |
| 140 | template<typename T> |
| 141 | void addCubicTest( const std::string &nameSuffix ) |