projects
/
platform
/
upstream
/
boost.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.57.0
[platform/upstream/boost.git]
/
libs
/
math
/
test
/
test_gamma.cpp
diff --git
a/libs/math/test/test_gamma.cpp
b/libs/math/test/test_gamma.cpp
index
3d9b5dd
..
83b7e4e
100644
(file)
--- a/
libs/math/test/test_gamma.cpp
+++ b/
libs/math/test/test_gamma.cpp
@@
-76,14
+76,14
@@
void expected_results()
"Win32.*", // platform
"real_concept", // test type(s)
"factorials", // test data group
"Win32.*", // platform
"real_concept", // test type(s)
"factorials", // test data group
- "boost::math::tgamma",
200, 1
00); // test function
+ "boost::math::tgamma",
600, 2
00); // test function
add_expected_result(
"GNU.*", // compiler
".*", // stdlib
"Win32.*", // platform
"real_concept", // test type(s)
"near.*", // test data group
add_expected_result(
"GNU.*", // compiler
".*", // stdlib
"Win32.*", // platform
"real_concept", // test type(s)
"near.*", // test data group
- "boost::math::tgamma", 200,
6
0); // test function
+ "boost::math::tgamma", 200,
10
0); // test function
//
// G++ on Linux, result vary a bit by processor type,
// on Itanium results are *much* better than listed here,
//
// G++ on Linux, result vary a bit by processor type,
// on Itanium results are *much* better than listed here,
@@
-96,7
+96,7
@@
void expected_results()
"linux", // platform
largest_type, // test type(s)
"factorials", // test data group
"linux", // platform
largest_type, // test type(s)
"factorials", // test data group
- "boost::math::tgamma",
4
00, 200); // test function
+ "boost::math::tgamma",
6
00, 200); // test function
add_expected_result(
".*", // compiler
".*", // stdlib
add_expected_result(
".*", // compiler
".*", // stdlib
@@
-131,14
+131,14
@@
void expected_results()
"linux", // platform
"real_concept", // test type(s)
"factorials", // test data group
"linux", // platform
"real_concept", // test type(s)
"factorials", // test data group
- "boost::math::tgamma",
220, 7
0); // test function
+ "boost::math::tgamma",
600, 10
0); // test function
add_expected_result(
".*", // compiler
".*", // stdlib
"linux", // platform
"real_concept", // test type(s)
"near (0|-55)", // test data group
add_expected_result(
".*", // compiler
".*", // stdlib
"linux", // platform
"real_concept", // test type(s)
"near (0|-55)", // test data group
- "boost::math::(t|l)gamma",
130, 8
0); // test function
+ "boost::math::(t|l)gamma",
300, 15
0); // test function
add_expected_result(
".*", // compiler
".*", // stdlib
add_expected_result(
".*", // compiler
".*", // stdlib
@@
-264,28
+264,28
@@
void expected_results()
".*", // platform
"real_concept", // test type(s)
"factorials", // test data group
".*", // platform
"real_concept", // test type(s)
"factorials", // test data group
- "boost::math::tgamma",
70, 25
); // test function
+ "boost::math::tgamma",
600, 100
); // test function
add_expected_result(
".*", // compiler
".*", // stdlib
".*", // platform
"real_concept", // test type(s)
"factorials", // test data group
add_expected_result(
".*", // compiler
".*", // stdlib
".*", // platform
"real_concept", // test type(s)
"factorials", // test data group
- "boost::math::lgamma",
40, 4
); // test function
+ "boost::math::lgamma",
200, 20
); // test function
add_expected_result(
".*", // compiler
".*", // stdlib
".*", // platform
"real_concept", // test type(s)
"near.*", // test data group
add_expected_result(
".*", // compiler
".*", // stdlib
".*", // platform
"real_concept", // test type(s)
"near.*", // test data group
- "boost::math::tgamma",
80, 6
0); // test function
+ "boost::math::tgamma",
300, 10
0); // test function
add_expected_result(
".*", // compiler
".*", // stdlib
".*", // platform
"real_concept", // test type(s)
"near.*", // test data group
add_expected_result(
".*", // compiler
".*", // stdlib
".*", // platform
"real_concept", // test type(s)
"near.*", // test data group
- "boost::math::lgamma",
1
0000000, 10000000); // test function
+ "boost::math::lgamma",
4
0000000, 10000000); // test function
add_expected_result(
".*", // compiler
".*", // stdlib
add_expected_result(
".*", // compiler
".*", // stdlib
@@
-302,18
+302,18
@@
void expected_results()
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
<< BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
}
-
int test_main(int, char* []
)
+
BOOST_AUTO_TEST_CASE( test_main
)
{
expected_results();
BOOST_MATH_CONTROL_FP;
#ifndef BOOST_MATH_BUGGY_LARGE_FLOAT_CONSTANTS
{
expected_results();
BOOST_MATH_CONTROL_FP;
#ifndef BOOST_MATH_BUGGY_LARGE_FLOAT_CONSTANTS
- test_spots(0.0F);
+ test_spots(0.0F
, "float"
);
#endif
#endif
- test_spots(0.0);
+ test_spots(0.0
, "double"
);
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
- test_spots(0.0L);
- test_spots(boost::math::concepts::real_concept(0.1));
+ test_spots(0.0L
, "long double"
);
+ test_spots(boost::math::concepts::real_concept(0.1)
, "real_concept"
);
#endif
#ifndef BOOST_MATH_BUGGY_LARGE_FLOAT_CONSTANTS
#endif
#ifndef BOOST_MATH_BUGGY_LARGE_FLOAT_CONSTANTS
@@
-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
"not available at all, or because they are too inaccurate for these tests "
"to pass.</note>" << std::cout;
#endif
- return 0;
+
}
}