2
0
mirror of https://github.com/boostorg/odeint.git synced 2026-02-16 13:42:08 +00:00

add gmp test case (yet empty)

This commit is contained in:
mariomulansky
2010-08-12 14:33:43 +00:00
parent a1b73d9e7b
commit 18ded6fa80
5 changed files with 103 additions and 32 deletions

View File

@@ -357,7 +357,6 @@ template< class State > class controlled_stepper_methods : public mpl::vector<
typedef mpl::insert_range< mpl::vector0<> , mpl::end< mpl::vector0<> >::type , controlled_stepper_methods< vector_type > >::type first_controlled_stepper_type;
typedef mpl::insert_range< first_controlled_stepper_type , mpl::end< first_controlled_stepper_type >::type , controlled_stepper_methods< gsl_vector_type > >::type second_controlled_stepper_type;
//typedef mpl::insert_range< second_controlled_stepper_type , mpl::end< second_controlled_stepper_type >::type , controlled_stepper_methods< array_type > >::type all_controlled_stepper_methods;
typedef mpl::insert_range< second_controlled_stepper_type , mpl::end< second_controlled_stepper_type >::type , controlled_stepper_methods< vector_space_type > >::type third_controlled_stepper_type;
typedef mpl::insert_range< third_controlled_stepper_type , mpl::end< third_controlled_stepper_type >::type , controlled_stepper_methods< array_type > >::type all_controlled_stepper_methods;

View File

@@ -0,0 +1,28 @@
# (C) Copyright 2010 : Karsten Ahnert, Mario Mulansky
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# bring in rules for testing
import testing ;
#project
# : requirements
# <define>blub=1
# <library>/boost/test//boost_unit_test_framework
# <link>shared:<define>BOOST_TEST_DYN_LINK=1
# <link>static
# <include>../../../..
# <include>$BOOST_ROOT
# ;
lib libgmp : : <name>gmp <link>shared ;
lib libgmpxx : : <name>gmpxx <link>shared ;
#lib libgmpxx : : <file>/usr/lib64/libgmpxx.so ;
test-suite "gmp"
:
[ run check_gmp.cpp libgmpxx libgmp ]
;

View File

@@ -0,0 +1,39 @@
/* Boost check_gmp.cpp test file
Copyright 2009 Karsten Ahnert
Copyright 2009 Mario Mulansky
This file tests the odeint library with the gmp arbitrary precision types
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or
copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include <vector>
#include <boost/test/unit_test.hpp>
#include <boost/numeric/odeint.hpp>
using namespace boost::unit_test;
using namespace boost::numeric::odeint;
//#define BOOST_TEST_DYN_LINK
void test_gmp()
{
//BOOST_CHECK( 1 == 0 );
}
test_suite* init_unit_test_suite( int argc , char* argv[] )
{
test_suite *test = BOOST_TEST_SUITE( "check gmp" );
test->add( BOOST_TEST_CASE(test_gmp) );
return test;
}