1 #define BOOST_TEST_MAIN 2 #define BOOST_TEST_DYN_LINK 4 #define BOOST_TEST_MODULE MatrixVectorTests 5 #include <boost/test/unit_test.hpp> 15 double cc[ 3 ] = {1, 2};
16 vector< double > dd( 2 ); dd[ 0 ] = -10; dd[ 1 ] = 99;
17 DVector a, b( 5 ), c(2, cc), d( dd );
19 BOOST_REQUIRE( a.
getDim() == 0 );
20 BOOST_REQUIRE( b.getDim() == 5 );
22 BOOST_REQUIRE( c.getDim() == 2 );
24 BOOST_REQUIRE( d.
getDim() == 2 );
BooleanType acadoIsEqual(double x, double y, double TOL)
#define USING_NAMESPACE_ACADO
BOOST_AUTO_TEST_CASE(vector_ctors)