Eliminated test_exec_monitor

[SVN r82782]
This commit is contained in:
Gennadiy Rozental 2013-02-08 05:09:47 +00:00
parent 68837b272e
commit 3bc111cdb7
155 changed files with 765 additions and 713 deletions

View File

@ -20,7 +20,7 @@ using boost::math::ntl::pow;
#include <iostream>
#include <iomanip>
#include <string>
#include <boost/test/included/test_exec_monitor.hpp> // for test_main
#include <boost/test/included/unit_test.hpp> // for test_main
extern boost::math::ntl::RR f(const boost::math::ntl::RR& x, int variant);
extern void show_extra(
@ -497,7 +497,7 @@ void graph_poly(const char*, const char*)
}
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
std::string line;
real_parser<long double/*boost::math::ntl::RR*/ > const rr_p;
@ -604,5 +604,4 @@ int test_main(int, char* [])
std::cout << std::endl;
}
}
return 0;
}

View File

@ -66,551 +66,551 @@ else
explicit ntl ;
cpp-pch pch : pch.hpp : <use>../../test/build//boost_test_exec_monitor ;
cpp-pch pch_light : pch_light.hpp : <use>../../test/build//boost_test_exec_monitor ;
cpp-pch pch : pch.hpp : <use>../../test/build//boost_unit_test_framework ;
cpp-pch pch_light : pch_light.hpp : <use>../../test/build//boost_unit_test_framework ;
#lib test_instances : float_test_instances.cpp double_test_instances.cpp ldouble_test_instances.cpp real_concept_test_instances.cpp pch
# : <link>static ;
run hypot_test.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run pow_test.cpp ../../test/build//boost_test_exec_monitor ;
run log1p_expm1_test.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run powm1_sqrtp1m1_test.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run hypot_test.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run pow_test.cpp ../../test/build//boost_unit_test_framework ;
run log1p_expm1_test.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run powm1_sqrtp1m1_test.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run special_functions_test.cpp ../../test/build//boost_unit_test_framework ;
run test_airy.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_bernoulli.cpp ../../test/build//boost_test_exec_monitor ;
run test_constants.cpp ../../test/build//boost_test_exec_monitor ;
run test_airy.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_bernoulli.cpp ../../test/build//boost_unit_test_framework ;
run test_constants.cpp ../../test/build//boost_unit_test_framework ;
run test_print_info_on_type.cpp ;
run test_constant_generate.cpp ntl : : : [ check-target-builds ../config//has_ntl_rr : : <build>no ] : test_constant_generate_ntl ;
run test_bessel_j.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_bessel_y.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_bessel_i.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_bessel_k.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_beta.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_beta_dist.cpp ../../test/build//boost_test_exec_monitor ;
run test_binomial.cpp ../../test/build//boost_test_exec_monitor
run test_bessel_j.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_bessel_y.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_bessel_i.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_bessel_k.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_beta.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_beta_dist.cpp ../../test/build//boost_unit_test_framework ;
run test_binomial.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_FLOAT
<toolset>intel:<pch>off
<define>TEST_FLOAT
<toolset>intel:<pch>off
: test_binomial_float ;
run test_binomial.cpp ../../test/build//boost_test_exec_monitor
run test_binomial.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_DOUBLE
<toolset>intel:<pch>off
<define>TEST_DOUBLE
<toolset>intel:<pch>off
: test_binomial_double ;
run test_binomial.cpp ../../test/build//boost_test_exec_monitor
run test_binomial.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
: test_binomial_long_double ;
run test_binomial.cpp ../../test/build//boost_test_exec_monitor
run test_binomial.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_ROUNDING=0
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_ROUNDING=0
<toolset>intel:<pch>off
: test_binomial_real_concept0 ;
run test_binomial.cpp ../../test/build//boost_test_exec_monitor
run test_binomial.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_ROUNDING=1
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_ROUNDING=1
<toolset>intel:<pch>off
: test_binomial_real_concept1 ;
run test_binomial.cpp ../../test/build//boost_test_exec_monitor
run test_binomial.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_ROUNDING=2
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_ROUNDING=2
<toolset>intel:<pch>off
: test_binomial_real_concept2 ;
run test_binomial.cpp ../../test/build//boost_test_exec_monitor
run test_binomial.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_ROUNDING=3
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_ROUNDING=3
<toolset>intel:<pch>off
: test_binomial_real_concept3 ;
run test_binomial.cpp ../../test/build//boost_test_exec_monitor
run test_binomial.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_ROUNDING=4
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_ROUNDING=4
<toolset>intel:<pch>off
: test_binomial_real_concept4 ;
run test_binomial.cpp ../../test/build//boost_test_exec_monitor
run test_binomial.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_ROUNDING=5
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_ROUNDING=5
<toolset>intel:<pch>off
: test_binomial_real_concept5 ;
run test_binomial.cpp ../../test/build//boost_test_exec_monitor
run test_binomial.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_ROUNDING=6
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_ROUNDING=6
<toolset>intel:<pch>off
: test_binomial_real_concept6 ;
run test_binomial_coeff.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_carlson.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_cauchy.cpp ../../test/build//boost_test_exec_monitor ;
run test_cbrt.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_chi_squared.cpp ../../test/build//boost_test_exec_monitor ;
run test_classify.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_digamma.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_dist_overloads.cpp ../../test/build//boost_test_exec_monitor ;
run test_ellint_1.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_ellint_2.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_ellint_3.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_erf.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_error_handling.cpp ../../test/build//boost_test_exec_monitor ;
run test_expint.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_exponential_dist.cpp ../../test/build//boost_test_exec_monitor ;
run test_extreme_value.cpp ../../test/build//boost_test_exec_monitor ;
run test_factorials.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_find_location.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_find_scale.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_fisher_f.cpp ../../test/build//boost_test_exec_monitor ;
run test_gamma.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_gamma_dist.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_geometric.cpp ../../test/build//boost_test_exec_monitor ;
run test_hankel.cpp ../../test/build//boost_test_exec_monitor ;
run test_hermite.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_hypergeometric_dist.cpp ../../test/build//boost_test_exec_monitor
run test_binomial_coeff.cpp pch ../../test/build//boost_unit_test_framework ;
run test_carlson.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_cauchy.cpp ../../test/build//boost_unit_test_framework ;
run test_cbrt.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_chi_squared.cpp ../../test/build//boost_unit_test_framework ;
run test_classify.cpp pch ../../test/build//boost_unit_test_framework ;
run test_digamma.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_dist_overloads.cpp ../../test/build//boost_unit_test_framework ;
run test_ellint_1.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_ellint_2.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_ellint_3.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_erf.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_error_handling.cpp ../../test/build//boost_unit_test_framework ;
run test_expint.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_exponential_dist.cpp ../../test/build//boost_unit_test_framework ;
run test_extreme_value.cpp ../../test/build//boost_unit_test_framework ;
run test_factorials.cpp pch ../../test/build//boost_unit_test_framework ;
run test_find_location.cpp pch ../../test/build//boost_unit_test_framework ;
run test_find_scale.cpp pch ../../test/build//boost_unit_test_framework ;
run test_fisher_f.cpp ../../test/build//boost_unit_test_framework ;
run test_gamma.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_gamma_dist.cpp pch ../../test/build//boost_unit_test_framework ;
run test_geometric.cpp ../../test/build//boost_unit_test_framework ;
run test_hankel.cpp ../../test/build//boost_unit_test_framework ;
run test_hermite.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_hypergeometric_dist.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_QUANT=0
<toolset>intel:<pch>off
<define>TEST_QUANT=0
<toolset>intel:<pch>off
: test_hypergeometric_dist0 ;
run test_hypergeometric_dist.cpp ../../test/build//boost_test_exec_monitor
run test_hypergeometric_dist.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_QUANT=1
<toolset>intel:<pch>off
<define>TEST_QUANT=1
<toolset>intel:<pch>off
: test_hypergeometric_dist1 ;
run test_hypergeometric_dist.cpp ../../test/build//boost_test_exec_monitor
run test_hypergeometric_dist.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_QUANT=2
<toolset>intel:<pch>off
<define>TEST_QUANT=2
<toolset>intel:<pch>off
: test_hypergeometric_dist2 ;
run test_hypergeometric_dist.cpp ../../test/build//boost_test_exec_monitor
run test_hypergeometric_dist.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_QUANT=3
<toolset>intel:<pch>off
<define>TEST_QUANT=3
<toolset>intel:<pch>off
: test_hypergeometric_dist3 ;
run test_hypergeometric_dist.cpp ../../test/build//boost_test_exec_monitor
run test_hypergeometric_dist.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_QUANT=4
<toolset>intel:<pch>off
<define>TEST_QUANT=4
<toolset>intel:<pch>off
: test_hypergeometric_dist4 ;
run test_hypergeometric_dist.cpp ../../test/build//boost_test_exec_monitor
run test_hypergeometric_dist.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_QUANT=5
<toolset>intel:<pch>off
<define>TEST_QUANT=5
<toolset>intel:<pch>off
: test_hypergeometric_dist5 ;
run test_ibeta.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_FLOAT
<toolset>intel:<pch>off
<define>TEST_FLOAT
<toolset>intel:<pch>off
: test_ibeta_float ;
run test_ibeta.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_DOUBLE
<toolset>intel:<pch>off
<define>TEST_DOUBLE
<toolset>intel:<pch>off
: test_ibeta_double ;
run test_ibeta.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
: test_ibeta_long_double ;
run test_ibeta.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=1
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=1
<toolset>intel:<pch>off
: test_ibeta_real_concept1 ;
run test_ibeta.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=2
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=2
<toolset>intel:<pch>off
: test_ibeta_real_concept2 ;
run test_ibeta.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=3
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=3
<toolset>intel:<pch>off
: test_ibeta_real_concept3 ;
run test_ibeta.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=4
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=4
<toolset>intel:<pch>off
: test_ibeta_real_concept4 ;
run test_ibeta_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_FLOAT
<toolset>intel:<pch>off
<define>TEST_FLOAT
<toolset>intel:<pch>off
: test_ibeta_inv_float ;
run test_ibeta_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_DOUBLE
<toolset>intel:<pch>off
<define>TEST_DOUBLE
<toolset>intel:<pch>off
: test_ibeta_inv_double ;
run test_ibeta_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
: test_ibeta_inv_long_double ;
run test_ibeta_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=1
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=1
<toolset>intel:<pch>off
: test_ibeta_inv_real_concept1 ;
run test_ibeta_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=2
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=2
<toolset>intel:<pch>off
: test_ibeta_inv_real_concept2 ;
run test_ibeta_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=3
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=3
<toolset>intel:<pch>off
: test_ibeta_inv_real_concept3 ;
run test_ibeta_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=4
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=4
<toolset>intel:<pch>off
: test_ibeta_inv_real_concept4 ;
run test_ibeta_inv_ab.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta_inv_ab.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_FLOAT
<toolset>intel:<pch>off
<define>TEST_FLOAT
<toolset>intel:<pch>off
: test_ibeta_inv_ab_float ;
run test_ibeta_inv_ab.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta_inv_ab.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_DOUBLE
<toolset>intel:<pch>off
<define>TEST_DOUBLE
<toolset>intel:<pch>off
: test_ibeta_inv_ab_double ;
run test_ibeta_inv_ab.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta_inv_ab.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
: test_ibeta_inv_ab_long_double ;
run test_ibeta_inv_ab.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta_inv_ab.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=1
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=1
<toolset>intel:<pch>off
: test_ibeta_inv_ab_real_concept1 ;
run test_ibeta_inv_ab.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta_inv_ab.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=2
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=2
<toolset>intel:<pch>off
: test_ibeta_inv_ab_real_concept2 ;
run test_ibeta_inv_ab.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_ibeta_inv_ab.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=3
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=3
<toolset>intel:<pch>off
: test_ibeta_inv_ab_real_concept3 ;
run test_igamma.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_igamma_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_igamma.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_igamma_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_FLOAT
<toolset>intel:<pch>off
<define>TEST_FLOAT
<toolset>intel:<pch>off
: test_igamma_inv_float ;
run test_igamma_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_igamma_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_DOUBLE
<toolset>intel:<pch>off
<define>TEST_DOUBLE
<toolset>intel:<pch>off
: test_igamma_inv_double ;
run test_igamma_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_igamma_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
: test_igamma_inv_long_double ;
run test_igamma_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_igamma_inv.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<toolset>intel:<pch>off
: test_igamma_inv_real_concept ;
run test_igamma_inva.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_igamma_inva.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_FLOAT
<toolset>intel:<pch>off
<define>TEST_FLOAT
<toolset>intel:<pch>off
: test_igamma_inva_float ;
run test_igamma_inva.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_igamma_inva.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_DOUBLE
<toolset>intel:<pch>off
<define>TEST_DOUBLE
<toolset>intel:<pch>off
: test_igamma_inva_double ;
run test_igamma_inva.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_igamma_inva.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
: test_igamma_inva_long_double ;
run test_igamma_inva.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor
run test_igamma_inva.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<toolset>intel:<pch>off
: test_igamma_inva_real_concept ;
run test_instantiate1.cpp test_instantiate2.cpp ;
run test_inverse_chi_squared_distribution.cpp ../../test/build//boost_test_exec_monitor ;
run test_inverse_gamma_distribution.cpp ../../test/build//boost_test_exec_monitor ;
run test_inverse_chi_squared_distribution.cpp ../../test/build//boost_unit_test_framework ;
run test_inverse_gamma_distribution.cpp ../../test/build//boost_unit_test_framework ;
run test_inverse_gaussian.cpp ../../test/build//boost_test_exec_monitor ;
run test_inverse_gaussian.cpp ../../test/build//boost_unit_test_framework ;
run test_jacobi.cpp pch_light ../../test/build//boost_test_exec_monitor ;
run test_jacobi.cpp pch_light ../../test/build//boost_unit_test_framework ;
run test_laplace.cpp ../../test/build//boost_unit_test_framework ;
run test_inv_hyp.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_laguerre.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_legendre.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_logistic_dist.cpp ../../test/build//boost_test_exec_monitor ;
run test_lognormal.cpp ../../test/build//boost_test_exec_monitor ;
run test_minima.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_negative_binomial.cpp ../../test/build//boost_test_exec_monitor
run test_inv_hyp.cpp pch ../../test/build//boost_unit_test_framework ;
run test_laguerre.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_legendre.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_logistic_dist.cpp ../../test/build//boost_unit_test_framework ;
run test_lognormal.cpp ../../test/build//boost_unit_test_framework ;
run test_minima.cpp pch ../../test/build//boost_unit_test_framework ;
run test_negative_binomial.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_FLOAT
<toolset>intel:<pch>off
<define>TEST_FLOAT
<toolset>intel:<pch>off
: test_negative_binomial_float ;
run test_negative_binomial.cpp ../../test/build//boost_test_exec_monitor
run test_negative_binomial.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_DOUBLE
<toolset>intel:<pch>off
<define>TEST_DOUBLE
<toolset>intel:<pch>off
: test_negative_binomial_double ;
run test_negative_binomial.cpp ../../test/build//boost_test_exec_monitor
run test_negative_binomial.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
: test_negative_binomial_long_double ;
run test_negative_binomial.cpp ../../test/build//boost_test_exec_monitor
run test_negative_binomial.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<toolset>intel:<pch>off
: test_negative_binomial_real_concept ;
run test_next.cpp pch pch ../../test/build//boost_test_exec_monitor ;
run test_nc_chi_squared.cpp pch ../../test/build//boost_test_exec_monitor
run test_next.cpp pch pch ../../test/build//boost_unit_test_framework ;
run test_nc_chi_squared.cpp pch ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_FLOAT
<toolset>intel:<pch>off
<define>TEST_FLOAT
<toolset>intel:<pch>off
: test_nc_chi_squared_float ;
run test_nc_chi_squared.cpp pch ../../test/build//boost_test_exec_monitor
run test_nc_chi_squared.cpp pch ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_DOUBLE
<toolset>intel:<pch>off
<define>TEST_DOUBLE
<toolset>intel:<pch>off
: test_nc_chi_squared_double ;
run test_nc_chi_squared.cpp pch ../../test/build//boost_test_exec_monitor
run test_nc_chi_squared.cpp pch ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
: test_nc_chi_squared_long_double ;
run test_nc_chi_squared.cpp pch ../../test/build//boost_test_exec_monitor
run test_nc_chi_squared.cpp pch ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<toolset>intel:<pch>off
: test_nc_chi_squared_real_concept ;
run test_nc_beta.cpp ../../test/build//boost_test_exec_monitor
run test_nc_beta.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_FLOAT
<toolset>intel:<pch>off
<define>TEST_FLOAT
<toolset>intel:<pch>off
: test_nc_beta_float ;
run test_nc_beta.cpp ../../test/build//boost_test_exec_monitor
run test_nc_beta.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_DOUBLE
<toolset>intel:<pch>off
<define>TEST_DOUBLE
<toolset>intel:<pch>off
: test_nc_beta_double ;
run test_nc_beta.cpp ../../test/build//boost_test_exec_monitor
run test_nc_beta.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
: test_nc_beta_long_double ;
run test_nc_beta.cpp ../../test/build//boost_test_exec_monitor
run test_nc_beta.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=1
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=1
<toolset>intel:<pch>off
: test_nc_beta_real_concept1 ;
run test_nc_beta.cpp ../../test/build//boost_test_exec_monitor
run test_nc_beta.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=2
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<define>TEST_DATA=2
<toolset>intel:<pch>off
: test_nc_beta_real_concept2 ;
run test_nc_f.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_nc_t.cpp pch ../../test/build//boost_test_exec_monitor
run test_nc_f.cpp pch ../../test/build//boost_unit_test_framework ;
run test_nc_t.cpp pch ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_FLOAT
<toolset>intel:<pch>off
<define>TEST_FLOAT
<toolset>intel:<pch>off
: test_nc_t_float ;
run test_nc_t.cpp pch ../../test/build//boost_test_exec_monitor
run test_nc_t.cpp pch ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_DOUBLE
<toolset>intel:<pch>off
<define>TEST_DOUBLE
<toolset>intel:<pch>off
: test_nc_t_double ;
run test_nc_t.cpp pch ../../test/build//boost_test_exec_monitor
run test_nc_t.cpp pch ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
: test_nc_t_long_double ;
run test_nc_t.cpp pch ../../test/build//boost_test_exec_monitor
run test_nc_t.cpp pch ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<toolset>intel:<pch>off
: test_nc_t_real_concept ;
run test_normal.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_owens_t.cpp ../../test/build//boost_test_exec_monitor ;
run test_pareto.cpp ../../test/build//boost_test_exec_monitor ;
run test_poisson.cpp ../../test/build//boost_test_exec_monitor
run test_normal.cpp pch ../../test/build//boost_unit_test_framework ;
run test_owens_t.cpp ../../test/build//boost_unit_test_framework ;
run test_pareto.cpp ../../test/build//boost_unit_test_framework ;
run test_poisson.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_FLOAT
<toolset>intel:<pch>off
<define>TEST_FLOAT
<toolset>intel:<pch>off
: test_poisson_float ;
run test_poisson.cpp ../../test/build//boost_test_exec_monitor
run test_poisson.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_DOUBLE
<toolset>intel:<pch>off
<define>TEST_DOUBLE
<toolset>intel:<pch>off
: test_poisson_double ;
run test_poisson.cpp ../../test/build//boost_test_exec_monitor
run test_poisson.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
<define>TEST_LDOUBLE
<toolset>intel:<pch>off
: test_poisson_long_double ;
run test_poisson.cpp ../../test/build//boost_test_exec_monitor
run test_poisson.cpp ../../test/build//boost_unit_test_framework
: # command line
: # input files
: # requirements
<define>TEST_REAL_CONCEPT
<toolset>intel:<pch>off
<define>TEST_REAL_CONCEPT
<toolset>intel:<pch>off
: test_poisson_real_concept ;
run test_rayleigh.cpp ../../test/build//boost_test_exec_monitor ;
run test_rayleigh.cpp ../../test/build//boost_unit_test_framework ;
run test_rationals.cpp ../../test/build//boost_test_exec_monitor
run test_rationals.cpp ../../test/build//boost_unit_test_framework
test_rational_instances/test_rational_double1.cpp
test_rational_instances/test_rational_double2.cpp
test_rational_instances/test_rational_double3.cpp
@ -632,43 +632,43 @@ test_rational_instances/test_rational_real_concept4.cpp
test_rational_instances/test_rational_real_concept5.cpp
;
run test_real_concept.cpp ../../test/build//boost_test_exec_monitor ;
run test_remez.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_roots.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_round.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_spherical_harmonic.cpp test_instances//test_instances pch_light ../../test/build//boost_test_exec_monitor ;
run test_students_t.cpp ../../test/build//boost_test_exec_monitor ;
run test_sign.cpp ../../test/build//boost_test_exec_monitor ;
run test_skew_normal.cpp ../../test/build//boost_test_exec_monitor ;
run test_tgamma_ratio.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_toms748_solve.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_triangular.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_uniform.cpp pch ../../test/build//boost_test_exec_monitor ;
run test_weibull.cpp ../../test/build//boost_test_exec_monitor ;
run test_zeta.cpp test_instances//test_instances ../../test/build//boost_test_exec_monitor pch_light ;
run test_real_concept.cpp ../../test/build//boost_unit_test_framework ;
run test_remez.cpp pch ../../test/build//boost_unit_test_framework ;
run test_roots.cpp pch ../../test/build//boost_unit_test_framework ;
run test_round.cpp pch ../../test/build//boost_unit_test_framework ;
run test_spherical_harmonic.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_students_t.cpp ../../test/build//boost_unit_test_framework ;
run test_sign.cpp ../../test/build//boost_unit_test_framework ;
run test_skew_normal.cpp ../../test/build//boost_unit_test_framework ;
run test_tgamma_ratio.cpp pch ../../test/build//boost_unit_test_framework ;
run test_toms748_solve.cpp pch ../../test/build//boost_unit_test_framework ;
run test_triangular.cpp pch ../../test/build//boost_unit_test_framework ;
run test_uniform.cpp pch ../../test/build//boost_unit_test_framework ;
run test_weibull.cpp ../../test/build//boost_unit_test_framework ;
run test_zeta.cpp test_instances//test_instances ../../test/build//boost_unit_test_framework pch_light ;
run test_policy.cpp ../../test/build//boost_test_exec_monitor ;
run test_policy_2.cpp ../../test/build//boost_test_exec_monitor ;
run test_policy_3.cpp ../../test/build//boost_test_exec_monitor ;
run test_policy_4.cpp ../../test/build//boost_test_exec_monitor ;
run test_policy_5.cpp ../../test/build//boost_test_exec_monitor ;
run test_policy_6.cpp ../../test/build//boost_test_exec_monitor ;
run test_policy_7.cpp ../../test/build//boost_test_exec_monitor ;
run test_policy_8.cpp ../../test/build//boost_test_exec_monitor ;
run test_policy_sf.cpp ../../test/build//boost_test_exec_monitor ;
run test_policy.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_2.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_3.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_4.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_5.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_6.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_7.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_8.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_sf.cpp ../../test/build//boost_unit_test_framework ;
run test_tr1.cpp
../build//boost_math_tr1
../build//boost_math_tr1f
../build//boost_math_c99
../build//boost_math_c99f
../../test/build//boost_test_exec_monitor
../../test/build//boost_unit_test_framework
;
run test_tr1.cpp
../build//boost_math_tr1l
../build//boost_math_c99l
../../test/build//boost_test_exec_monitor
../../test/build//boost_unit_test_framework
: : :
<define>TEST_LD=1
[ check-target-builds ../config//has_long_double_support : : <build>no ]
@ -681,7 +681,7 @@ run test_tr1.c
../build//boost_math_tr1f
../build//boost_math_c99
../build//boost_math_c99f
../../test/build//boost_test_exec_monitor
../../test/build//boost_unit_test_framework
: : : #requirements
:
test_tr1_c
@ -690,7 +690,7 @@ run test_tr1.c
run test_tr1.c
../build//boost_math_tr1l
../build//boost_math_c99l
../../test/build//boost_test_exec_monitor
../../test/build//boost_unit_test_framework
: : :
<define>TEST_LD=1
[ check-target-builds ../config//has_long_double_support : : <build>no ]
@ -698,7 +698,7 @@ run test_tr1.c
test_tr1_c_long_double
;
run test_long_double_support.cpp ../../test/build//boost_test_exec_monitor
run test_long_double_support.cpp ../../test/build//boost_unit_test_framework
: : : [ check-target-builds ../config//has_long_double_support : : <build>no ] ;
run compile_test/compl_abs_incl_test.cpp compile_test/main.cpp ;
@ -815,13 +815,13 @@ run ../quaternion/quaternion_mult_incl_test.cpp
../../test/build//boost_unit_test_framework ;
run test_legacy_nonfinite.cpp ../../test/build//boost_test_exec_monitor ;
run test_basic_nonfinite.cpp ../../test/build//boost_test_exec_monitor ;
run test_lexical_cast.cpp ../../test/build//boost_test_exec_monitor ;
run test_nonfinite_trap.cpp ../../test/build//boost_test_exec_monitor ;
run test_signed_zero.cpp ../../test/build//boost_test_exec_monitor ;
run test_legacy_nonfinite.cpp ../../test/build//boost_unit_test_framework ;
run test_basic_nonfinite.cpp ../../test/build//boost_unit_test_framework ;
run test_lexical_cast.cpp ../../test/build//boost_unit_test_framework ;
run test_nonfinite_trap.cpp ../../test/build//boost_unit_test_framework ;
run test_signed_zero.cpp ../../test/build//boost_unit_test_framework ;
run complex_test.cpp ../../test/build//boost_test_exec_monitor ;
run complex_test.cpp ../../test/build//boost_unit_test_framework ;
compile multiprc_concept_check_1.cpp : <debug-symbols>off ;
compile multiprc_concept_check_2.cpp : <debug-symbols>off ;

View File

@ -10,7 +10,7 @@
#include <iomanip>
#include <iostream>
#define BOOST_TEST_MAiN
#include <boost/math/special_functions/acosh.hpp>

View File

@ -10,7 +10,7 @@
#include <iomanip>
#include <iostream>
#define BOOST_TEST_MAiN
#include <boost/math/special_functions/asinh.hpp>

View File

@ -10,7 +10,7 @@
#include <iomanip>
//#include <iostream>
#define BOOST_TEST_MAiN
#include <boost/math/special_functions/atanh.hpp>

View File

@ -3,8 +3,8 @@
// 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 <boost/test/test_tools.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/type_traits/is_floating_point.hpp>
@ -896,7 +896,7 @@ void test_boundaries()
}
int test_main(int, char*[])
BOOST_AUTO_TEST_CASE( test_main )
{
std::cout << "Running complex trig sanity checks for type float." << std::endl;
test_inverse_trig(float(0));
@ -915,7 +915,6 @@ int test_main(int, char*[])
std::cout << "Running complex trig boundary and accuracy tests." << std::endl;
test_boundaries();
return 0;
}

View File

@ -6,7 +6,8 @@
#include <pch_light.hpp>
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
@ -121,10 +122,9 @@ void test_spots()
}
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
test_boundaries();
test_spots();
return 0;
}

View File

@ -12,7 +12,8 @@
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include "log1p_expm1_test.hpp"
@ -66,7 +67,7 @@ void expected_results()
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -88,6 +89,5 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -6,8 +6,6 @@
#ifdef BOOST_BUILD_PCH_ENABLED
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
#include <boost/test/test_exec_monitor.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions.hpp>
#include <boost/math/distributions.hpp>
#include <boost/math/tools/test.hpp>

View File

@ -6,8 +6,6 @@
#ifdef BOOST_BUILD_PCH_ENABLED
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
#include <boost/test/test_exec_monitor.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/tools/test.hpp>
#include <boost/math/tools/stats.hpp>

View File

@ -11,7 +11,8 @@
#include <iostream>
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/typeof/typeof.hpp>
@ -141,7 +142,7 @@ void test_error_policy()
== 456.78);
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
using namespace std;
@ -195,8 +196,6 @@ int test_main(int, char* [])
test_return_types();
test_error_policy();
return 0;
}
/*

View File

@ -6,7 +6,8 @@
#include <pch_light.hpp>
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/tools/test.hpp>
@ -55,7 +56,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -72,7 +73,6 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -14,7 +14,7 @@
#include <boost/math/special_functions/sinc.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>

View File

@ -14,7 +14,7 @@
#include <boost/math/special_functions/sinhc.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>

View File

@ -6,7 +6,8 @@
#include <pch_light.hpp>
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/concepts/real_concept.hpp>
@ -57,7 +58,7 @@ void test_airy(T, const char* name)
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
#ifdef TEST_GSL
gsl_set_error_handler_off();
@ -77,7 +78,6 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -26,7 +26,8 @@ using ::boost::math::concepts::real_concept;
#include <boost/math/distributions/bernoulli.hpp> // for bernoulli_distribution
using boost::math::bernoulli_distribution;
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE_FRACTION, BOOST_CHECK_EQUAL...
#include <iostream>
@ -260,7 +261,7 @@ void test_spots(RealType)
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
// Check that can generate bernoulli distribution using both convenience methods:
@ -295,8 +296,7 @@ int test_main(int, char* [])
test_spots(boost::math::concepts::real_concept(0.)); // Test real concept.
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -18,7 +18,8 @@
#include <boost/math/special_functions/airy.hpp>
#include <boost/math/concepts/real_concept.hpp> // for real_concept
#include <boost/test/test_exec_monitor.hpp> // Boost.Test
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // Boost.Test
#include <boost/test/floating_point_comparison.hpp>
@ -59,12 +60,12 @@ treated differently than the remaining ones.
So I would be most interested in various regions of order,
each one tested with about 20 zeros should suffice:
Order 219/100: This checks a region just below a critical cutoff
Order 221/100: This checks a region just above a critical cutoff
Order 0: Something always tends to go wrong at zero.
Order 1/1000: A small order
Order 71/19: Merely an intermediate order.
Order 7001/19: A medium-large order, small enough to retain moderate efficiency of calculation.
Order 219/100: This checks a region just below a critical cutoff
Order 221/100: This checks a region just above a critical cutoff
Order 0: Something always tends to go wrong at zero.
Order 1/1000: A small order
Order 71/19: Merely an intermediate order.
Order 7001/19: A medium-large order, small enough to retain moderate efficiency of calculation.
If we would like, we could add a few selected high zeros
such as the 1000th zero for a few modest orders such as 71/19, etc.

View File

@ -110,7 +110,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
#ifdef TEST_GSL
gsl_set_error_handler_off();
@ -133,7 +133,6 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -5,7 +5,8 @@
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/type_traits/is_floating_point.hpp>

View File

@ -281,7 +281,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
#ifdef TEST_GSL
gsl_set_error_handler_off();
@ -302,7 +302,6 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -5,7 +5,8 @@
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/constants/constants.hpp>

View File

@ -101,7 +101,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
#ifdef TEST_GSL
gsl_set_error_handler_off();
@ -124,7 +124,6 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -5,7 +5,8 @@
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/type_traits/is_floating_point.hpp>

View File

@ -239,7 +239,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
#ifdef TEST_GSL
gsl_set_error_handler_off();
@ -262,7 +262,6 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -5,7 +5,8 @@
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/constants/constants.hpp>

View File

@ -100,7 +100,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -133,7 +133,6 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -11,7 +11,8 @@
#endif
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/tools/stats.hpp>

View File

@ -39,7 +39,8 @@ using ::boost::math::concepts::real_concept;
using boost::math::beta_distribution;
using boost::math::beta;
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE_FRACTION
#include "test_out_of_range.hpp"
@ -523,7 +524,7 @@ void test_spots(RealType)
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
// Check that can generate beta distribution using one convenience methods:
@ -615,8 +616,7 @@ int test_main(int, char* [])
test_spots(boost::math::concepts::real_concept(0.)); // Test real concept.
#endif
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -33,7 +33,8 @@ using ::boost::math::concepts::real_concept;
#include <boost/math/distributions/binomial.hpp> // for binomial_distribution
using boost::math::binomial_distribution;
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE
#include "table_type.hpp"
@ -717,7 +718,7 @@ void test_spots(RealType T)
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
// Check that can generate binomial distribution using one convenience methods:
@ -751,8 +752,7 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -111,7 +111,7 @@ void test_spots(T, const char* name)
BOOST_CHECK_CLOSE(boost::math::binomial_coefficient<T>(300, 275), static_cast<T>(1.953265141442868389822364184842211512000000e36L), tolerance);
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -136,7 +136,6 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -5,7 +5,8 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/binomial.hpp>
#include <boost/math/special_functions/trunc.hpp>

View File

@ -112,7 +112,7 @@ void expected_results()
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -132,8 +132,6 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}
/*

View File

@ -5,7 +5,8 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/constants/constants.hpp>

View File

@ -25,7 +25,8 @@
#include "test_out_of_range.hpp"
#include <boost/test/test_exec_monitor.hpp> // Boost.Test
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // Boost.Test
#include <boost/test/floating_point_comparison.hpp>
#include <iostream>
@ -695,7 +696,7 @@ void test_spots(RealType T)
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
// Check that can generate cauchy distribution using the two convenience methods:
@ -721,8 +722,7 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*
Output:

View File

@ -73,7 +73,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -85,6 +85,5 @@ int test_main(int, char* [])
test_cbrt(boost::math::concepts::real_concept(0.1), "real_concept");
#endif
#endif
return 0;
}

View File

@ -5,7 +5,8 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/tools/stats.hpp>
#include <boost/math/tools/test.hpp>

View File

@ -23,7 +23,8 @@ using ::boost::math::concepts::real_concept;
using boost::math::chi_squared_distribution;
using boost::math::chi_squared;
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE
#include "test_out_of_range.hpp"
@ -534,7 +535,7 @@ void test_spots(RealType T)
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
// Check that can generate chi_squared distribution using the two convenience methods:
@ -552,8 +553,7 @@ int test_main(int, char* [])
test_spots(boost::math::concepts::real_concept(0.)); // Test real concept.
#endif
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -11,7 +11,8 @@
#include <boost/limits.hpp>
#include <boost/math/concepts/real_concept.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#ifdef _MSC_VER
#pragma warning(disable: 4127 4146) // conditional expression is constant
@ -250,7 +251,7 @@ void test_classify(T t, const char* type)
#endif
}
int test_main(int, char* [] )
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
// start by printing some information:
@ -279,7 +280,6 @@ int test_main(int, char* [] )
// We should test with integer types as well:
test_classify(int(0), "int");
test_classify(unsigned(0), "unsigned");
return 0;
}
/*

View File

@ -20,7 +20,8 @@
#endif
#include <boost/math/concepts/real_concept.hpp> // for real_concept
#include <boost/test/test_exec_monitor.hpp> // Boost.Test
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // Boost.Test
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/constants/constants.hpp>
@ -751,7 +752,7 @@ void test_real_concept_policy(const Policy&)
} // template <class boost::math::concepts::real_concept>void test_spots(boost::math::concepts::real_concept)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
// Basic sanity-check spot values.
@ -780,8 +781,7 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -89,7 +89,7 @@ void test_spots(T, const char* t)
BOOST_CHECK_CLOSE(::boost::math::digamma(static_cast<T>(-1.5)), static_cast<T>(0.70315664064524318722569033366791109947350706200623L), tolerance);
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
test_spots(0.0F, "float");
@ -114,7 +114,6 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -5,7 +5,8 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/array.hpp>

View File

@ -12,7 +12,8 @@
#include <boost/math/distributions/normal.hpp>
using boost::math::normal_distribution;
#include <boost/test/test_exec_monitor.hpp> // Boost.Test
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // Boost.Test
#include <boost/test/floating_point_comparison.hpp>
#include <iostream>
@ -65,7 +66,7 @@ void test_spots(RealType)
}
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
// Basic sanity-check spot values.
// (Parameter value, arbitrarily zero, only communicates the floating point type).
@ -83,8 +84,7 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -79,7 +79,7 @@ void expected_results()
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -98,5 +98,4 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -10,7 +10,8 @@
#endif
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/array.hpp>

View File

@ -79,7 +79,7 @@ void expected_results()
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -99,5 +99,4 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -10,7 +10,8 @@
#endif
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/array.hpp>

View File

@ -92,7 +92,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -110,5 +110,4 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -10,7 +10,8 @@
#endif
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/array.hpp>

View File

@ -122,7 +122,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
test_spots(0.0F, "float");
@ -151,7 +151,6 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}
/*

View File

@ -5,7 +5,8 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/constants/constants.hpp>

View File

@ -64,7 +64,8 @@ T user_indeterminate_result_error(const char* , const char* , const T& )
#include <boost/math/concepts/real_concept.hpp>
#include <boost/math/policies/policy.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <cerrno> // for errno
//
// Define some policies:
@ -176,7 +177,7 @@ void test_error(T)
BOOST_CHECK_EQUAL(errno, EDOM);
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
// Test error handling.
// (Parameter value, arbitrarily zero, only communicates the floating point type FPT).
@ -184,8 +185,7 @@ int test_main(int, char* [])
test_error(0.0); // Test double.
test_error(0.0L); // Test long double.
test_error(boost::math::concepts::real_concept(0.0L)); // Test concepts.
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -121,7 +121,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -155,7 +155,6 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -6,7 +6,8 @@
#include <boost/math/concepts/real_concept.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/tools/stats.hpp>
#include <boost/math/tools/test.hpp>

View File

@ -12,7 +12,8 @@
#include <boost/math/distributions/exponential.hpp>
using boost::math::exponential_distribution;
#include <boost/test/test_exec_monitor.hpp> // Boost.Test
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // Boost.Test
#include <boost/test/floating_point_comparison.hpp>
#include "test_out_of_range.hpp"
@ -263,7 +264,7 @@ void test_spots(RealType T)
}
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
// Check that can generate exponential distribution using the two convenience methods:
boost::math::exponential mycexp1(1.); // Using typedef
@ -285,8 +286,7 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -11,7 +11,8 @@
#include <boost/math/distributions/extreme_value.hpp>
using boost::math::extreme_value_distribution;
#include <boost/test/test_exec_monitor.hpp> // Boost.Test
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // Boost.Test
#include <boost/test/floating_point_comparison.hpp>
#include "test_out_of_range.hpp"
@ -193,7 +194,7 @@ void test_spots(RealType)
}
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
// Check that can generate extreme_value distribution using the two convenience methods:
@ -216,8 +217,8 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -14,7 +14,8 @@
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/factorials.hpp>
#include <boost/math/special_functions/gamma.hpp>
@ -286,7 +287,7 @@ void test_spots(T)
}
} // template <class T> void test_spots(T)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
test_spots(0.0F);
@ -321,7 +322,7 @@ int test_main(int, char* [])
return 0;
}
/*

View File

@ -29,7 +29,8 @@
#include <boost/math/policies/policy.hpp>
using boost::math::policies::policy;
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE_FRACTION, BOOST_CHECK_EQUAL...
#include <iostream>
@ -136,7 +137,7 @@ void test_spots(RealType)
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
// Basic sanity-check spot values.
@ -154,8 +155,8 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -29,7 +29,8 @@
#include <boost/math/policies/policy.hpp>
using boost::math::policies::policy;
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE_FRACTION, BOOST_CHECK_EQUAL...
#include <iostream>
@ -170,7 +171,7 @@ void test_spots(RealType)
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
// Basic sanity-check spot values.
@ -188,8 +189,8 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -14,7 +14,8 @@ using ::boost::math::concepts::real_concept;
#include <boost/math/distributions/fisher_f.hpp> // for fisher_f_distribution
using boost::math::fisher_f_distribution;
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE
#include "test_out_of_range.hpp"
@ -502,7 +503,7 @@ void test_spots(RealType)
check_out_of_range<fisher_f_distribution<RealType> >(2, 3);
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
// Check that can generate fisher distribution using the two convenience methods:
@ -521,8 +522,8 @@ int test_main(int, char* [])
test_spots(boost::math::concepts::real_concept(0.)); // Test real concept.
#endif
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -302,7 +302,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -333,7 +333,7 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -8,7 +8,8 @@
#include <boost/math/concepts/real_concept.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/tools/stats.hpp>
#include <boost/math/tools/test.hpp>

View File

@ -18,7 +18,8 @@
#include <pch.hpp> // include directory libs/math/src/tr1/ is needed.
#include <boost/math/concepts/real_concept.hpp> // for real_concept
#include <boost/test/test_exec_monitor.hpp> // Boost.Test
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // Boost.Test
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/distributions/gamma.hpp>
@ -223,7 +224,7 @@ void test_spots(RealType)
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
// Basic sanity-check spot values.
// (Parameter value, arbitrarily zero, only communicates the floating point type).
@ -241,8 +242,8 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -35,7 +35,8 @@ using boost::math::geometric; // using typedef for geometric_distribution<double
#include <boost/math/distributions/negative_binomial.hpp> // for some comparisons.
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE_FRACTION
#include "test_out_of_range.hpp"
@ -748,7 +749,7 @@ if(std::numeric_limits<RealType>::is_specialized)
return;
} // template <class RealType> void test_spots(RealType) // Any floating-point type RealType.
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
// Check that can generate geometric distribution using the two convenience methods:
using namespace boost::math;
@ -790,8 +791,8 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -6,7 +6,8 @@
#include <pch_light.hpp>
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/concepts/real_concept.hpp>
@ -119,7 +120,7 @@ typedef boost::math::policies::policy<
template std::complex<double> boost::math::cyl_hankel_1<double, double, pol3>(double, double, const pol3&);
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
#ifdef TEST_GSL
gsl_set_error_handler_off();
@ -138,7 +139,7 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -77,7 +77,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
@ -109,7 +109,7 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -12,7 +12,8 @@
#endif
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/constants/constants.hpp>

View File

@ -11,7 +11,8 @@
#include <boost/math/concepts/real_concept.hpp> // for real_concept
#include <boost/math/distributions/hypergeometric.hpp>
#include <boost/test/test_exec_monitor.hpp> // Boost.Test
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // Boost.Test
#include <boost/test/results_collector.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
@ -478,7 +479,7 @@ void test_spots(RealType /*T*/, const char* type_name)
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
// Basic sanity-check spot values.
@ -497,6 +498,6 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )

View File

@ -278,7 +278,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -323,7 +323,7 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -5,7 +5,8 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/tools/stats.hpp>

View File

@ -171,7 +171,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
expected_results();
@ -214,7 +214,7 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -5,7 +5,8 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/tools/stats.hpp>

View File

@ -98,7 +98,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
#ifdef TEST_GSL
@ -126,6 +126,6 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -7,7 +7,8 @@
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/tools/stats.hpp>

View File

@ -323,7 +323,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -356,7 +356,7 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -8,7 +8,8 @@
#include <boost/math/concepts/real_concept.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/tools/stats.hpp>
#include <boost/math/tools/test.hpp>

View File

@ -174,7 +174,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -223,7 +223,7 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -6,7 +6,8 @@
#include <boost/math/concepts/real_concept.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/results_collector.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>

View File

@ -101,7 +101,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -131,7 +131,7 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -8,7 +8,8 @@
#include <boost/math/concepts/real_concept.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/results_collector.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>

View File

@ -9,7 +9,8 @@
#include <boost/math/special_functions/acosh.hpp>
#include <boost/math/special_functions/asinh.hpp>
#include <boost/math/special_functions/atanh.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/tools/stats.hpp>
#include <boost/math/tools/test.hpp>
@ -250,7 +251,7 @@ void test_spots(T, const char* t)
BOOST_CHECK_CLOSE(::boost::math::atanh(static_cast<T>(-0.5)), static_cast<T>(-0.549306144334054845697622618461262852323745278911374725867347L), tolerance);
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -282,7 +283,7 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -20,7 +20,8 @@
using ::boost::math::concepts::real_concept;
//#include <boost/math/tools/test.hpp>
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE_FRACTION
#include <boost/math/distributions/inverse_chi_squared.hpp> // for inverse_chisquared_distribution
@ -305,7 +306,7 @@ void test_spots(RealType)
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
@ -497,8 +498,8 @@ int test_main(int, char* [])
#endif
/* */
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -18,7 +18,8 @@
using ::boost::math::concepts::real_concept;
//#include <boost/math/tools/test.hpp>
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE_FRACTION
#include "test_out_of_range.hpp"
@ -304,7 +305,7 @@ void test_spots(RealType)
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
@ -496,8 +497,8 @@ int test_main(int, char* [])
#endif
/* */
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -18,7 +18,8 @@
using ::boost::math::concepts::real_concept;
//#include <boost/math/tools/test.hpp>
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE_FRACTION
#include "test_out_of_range.hpp"
@ -327,7 +328,7 @@ void test_spots(RealType)
check_out_of_range<inverse_gamma_distribution<RealType> >(1, 1);
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
@ -412,8 +413,8 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -17,7 +17,8 @@
//#include <pch.hpp> // include directory libs/math/src/tr1/ is needed.
#include <boost/math/concepts/real_concept.hpp> // for real_concept
#include <boost/test/test_exec_monitor.hpp> // Boost.Test
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // Boost.Test
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/distributions/inverse_gaussian.hpp>
@ -161,7 +162,7 @@ void test_spots(RealType)
static_cast<RealType>(10), tolerance);
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
using boost::math::inverse_gaussian;
using boost::math::inverse_gaussian_distribution;
@ -334,8 +335,8 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
/* */
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -112,7 +112,7 @@ void expected_results()
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
BOOST_MATH_CONTROL_FP;
@ -131,5 +131,5 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -10,7 +10,8 @@
#endif
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/array.hpp>

View File

@ -136,7 +136,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
@ -166,7 +166,7 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -5,7 +5,8 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/constants/constants.hpp>

View File

@ -178,7 +178,7 @@ void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
test_spots(0.0F, "float");
@ -203,7 +203,7 @@ int test_main(int, char* [])
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
return 0;
}

View File

@ -9,7 +9,8 @@
#endif
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/math_fwd.hpp>
#include <boost/math/constants/constants.hpp>

View File

@ -11,7 +11,8 @@
#include <boost/math/distributions/logistic.hpp>
using boost::math::logistic_distribution;
#include <boost/test/test_exec_monitor.hpp> // Boost.Test
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // Boost.Test
#include <boost/test/floating_point_comparison.hpp>
#include "test_out_of_range.hpp"
@ -315,7 +316,7 @@ void test_spots(RealType T)
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
// Check that can generate logistic distribution using the two convenience methods:
boost::math::logistic mycexp1(1.); // Using typedef
@ -337,6 +338,6 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )

View File

@ -9,7 +9,8 @@
// test_lognormal.cpp
#include <boost/math/concepts/real_concept.hpp> // for real_concept
#include <boost/test/test_exec_monitor.hpp> // Boost.Test
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // Boost.Test
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/distributions/lognormal.hpp>
@ -260,7 +261,7 @@ void test_spots(RealType)
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
// Check that can generate lognormal distribution using the two convenience methods:
@ -290,8 +291,8 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*
Running 1 test case...

View File

@ -9,7 +9,8 @@
#include <math.h>
#include <limits.h>
#include <boost/test/test_exec_monitor.hpp> // Boost.Test
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // Boost.Test
#include <boost/test/results_collector.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
@ -204,7 +205,7 @@ void test_spots()
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
expected_results();
std::cout << "Running tests with BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS "
@ -218,6 +219,6 @@ int test_main(int, char* [])
// (Parameter value, arbitrarily zero, only communicates the floating point type).
test_spots(); // Test long double.
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )

View File

@ -8,7 +8,8 @@
#include <pch.hpp>
#include <boost/math/tools/minima.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/gamma.hpp>
@ -48,14 +49,14 @@ void test_minima(T, const char* /* name */)
BOOST_CHECK_CLOSE(m.first, T(1.461632), T(0.1));
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
test_minima(0.1f, "float");
test_minima(0.1, "double");
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
test_minima(0.1L, "long double");
#endif
return 0;
}

View File

@ -26,7 +26,8 @@
#include <boost/math/concepts/real_concept.hpp> // for real_concept
#include <boost/math/distributions/non_central_beta.hpp> // for chi_squared_distribution
#include <boost/math/distributions/poisson.hpp> // for poisson_distribution
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/results_collector.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE
@ -427,7 +428,7 @@ void test_accuracy(T, const char* type_name)
#endif
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
// Basic sanity-check spot values.
@ -466,6 +467,6 @@ int test_main(int, char* [])
#endif
#endif
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )

View File

@ -23,7 +23,8 @@
#include <boost/math/concepts/real_concept.hpp> // for real_concept
#include <boost/math/distributions/non_central_chi_squared.hpp> // for chi_squared_distribution
#include <boost/math/special_functions/cbrt.hpp> // for chi_squared_distribution
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/results_collector.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE
@ -518,7 +519,7 @@ void test_accuracy(T, const char* type_name)
quantile_sanity_check<T>(nccs_big, type_name, "Non Central Chi Squared, large parameters");
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
// Basic sanity-check spot values.
@ -557,7 +558,7 @@ int test_main(int, char* [])
#endif
#endif
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )

View File

@ -22,7 +22,8 @@
#include <boost/math/concepts/real_concept.hpp> // for real_concept
#include <boost/math/distributions/non_central_f.hpp> // for chi_squared_distribution
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/results_collector.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE
@ -294,7 +295,7 @@ void test_spots(RealType)
BOOST_CHECK_THROW(quantile(boost::math::non_central_f_distribution<RealType>(1, 1, 1), 2), std::domain_error);
} // template <class RealType>void test_spots(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
// Basic sanity-check spot values.
@ -309,6 +310,6 @@ int test_main(int, char* [])
#endif
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )

View File

@ -25,7 +25,8 @@
#include <boost/math/distributions/non_central_t.hpp> // for chi_squared_distribution.
#include <boost/math/distributions/normal.hpp> // for normal distribution (for comparison).
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/results_collector.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE
@ -798,7 +799,7 @@ void test_ignore_policy(RealType)
} // template <class RealType> void test_ignore_policy(RealType)
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
BOOST_MATH_CONTROL_FP;
// Basic sanity-check spot values.
@ -843,8 +844,8 @@ int test_main(int, char* [])
test_big_df(0.F); // float
test_big_df(0.); // double
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -35,7 +35,8 @@ using boost::math::negative_binomial_distribution;
#include <boost/math/special_functions/gamma.hpp>
using boost::math::lgamma; // log gamma
#include <boost/test/test_exec_monitor.hpp> // for test_main
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp> // for test_main
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE
#include "table_type.hpp"
#include "test_out_of_range.hpp"
@ -798,7 +799,7 @@ if(std::numeric_limits<RealType>::is_specialized)
return;
} // template <class RealType> void test_spots(RealType) // Any floating-point type RealType.
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
// Check that can generate negative_binomial distribution using the two convenience methods:
using namespace boost::math;
@ -839,8 +840,8 @@ int test_main(int, char* [])
"to pass.</note>" << std::cout;
#endif
return 0;
} // int test_main(int, char* [])
} // BOOST_AUTO_TEST_CASE( test_main )
/*

View File

@ -6,7 +6,8 @@
#include <pch.hpp>
#include <boost/math/concepts/real_concept.hpp>
#include <boost/test/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/next.hpp>
@ -148,7 +149,7 @@ void test_values(const T& val, const char* name)
}
}
int test_main(int, char* [])
BOOST_AUTO_TEST_CASE( test_main )
{
test_values(1.0f, "float");
test_values(1.0, "double");
@ -181,7 +182,7 @@ int test_main(int, char* [])
test_values(1.0f, "float");
test_values(1.0, "double");
#endif
return 0;
}

Some files were not shown because too many files have changed in this diff Show More