int test_main(int, char* []) { expected_results(); BOOST_MATH_CONTROL_FP; test_spots(1.0F, "float"); test_spots(1.0, "double"); #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS test_spots(1.0L, "long double"); test_spots(boost::math::concepts::real_concept(), "real_concept"); #endif test_binomial(1.0F, "float"); test_binomial(1.0, "double"); #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS test_binomial(1.0L, "long double"); #ifndef BOOST_MATH_NO_REAL_CONCEPT_TESTS test_binomial(boost::math::concepts::real_concept(), "real_concept"); #endif #else std::cout << "<note>The long double tests have been disabled on this platform " "either because the long double overloads of the usual math functions are " "not available at all, or because they are too inaccurate for these tests " "to pass.</note>" << std::cout; #endif return 0; }
int main(int argc, char *argv[]) { /* inlined functions, test commented out */ //printf("\n*** Testing bootstrap sample ***\n"); //test_boostrap_sample(); //printf("\n*** Testing compare doubles and qsort\n"); //test_sort(); //printf("\n*** Testing swap ***\n"); //test_swap(); /* regular functions */ printf("\n*** Testing percentile ***\n"); test_percentile(); printf("\n*** Testing min idx ***\n"); test_min_idx(); printf("\n*** Testing mean ***\n"); test_mean(); printf("\n*** Testing std dev ***\n"); test_std(); printf("\n*** Testing binomial ***\n"); test_binomial(); printf("\n*** Testing fetcount ***\n"); test_fetcount(); printf("\n*** Testing shift table ***\n"); test_shift_table(); printf("\n*** Testing fet p0 ***\n"); test_fet_p(); printf("\n*** Testing fet ***\n"); test_fet(); test_all(argc, argv); test_thread(argc, argv); return 0; }
void test(T t, const char* p) { test_binomial(t, p); }
void selftest(void) { // for handling "errout" if (setjmp(jbuf)) return; #if SELFTEST test_low_level(); test_multiply(); test_scan(); test_power(); test_factor_number(); test_test(); test_tensor(); test_bake(); test(__FILE__, s, sizeof (s) / sizeof (char *)); // "s" is in selftest.h test_abs(); test_adj(); test_arg(); test_besselj(); test_bessely(); test_ceiling(); test_choose(); test_circexp(); test_clock(); test_cofactor(); test_condense(); test_contract(); test_defint(); test_denominator(); test_derivative(); test_dirac(); test_erf(); test_erfc(); test_expand(); test_expcos(); test_expsin(); test_factorpoly(); test_float(); test_floor(); test_gamma(); test_gcd(); test_imag(); test_inner(); test_lcm(); test_log(); test_mag(); test_mod(); test_nroots(); test_numerator(); test_outer(); test_polar(); test_quotient(); test_rationalize(); test_real(); test_rect(); test_sgn(); test_taylor(); test_transpose(); test_zero(); test_hermite(); test_laguerre(); test_legendre(); test_binomial(); test_divisors(); test_coeff(); test_sin(); test_cos(); test_tan(); test_sinh(); test_cosh(); test_tanh(); test_arcsin(); test_arcsinh(); test_arccos(); test_arccosh(); test_arctan(); test_arctanh(); test_index(); test_isprime(); test_integral(); test_simplify(); test_roots(); test_eigen(); #endif mini_test(); logout("OK, all tests passed.\n"); }