Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2007-10-10 05:28:49


Author: johnmaddock
Date: 2007-10-10 05:28:48 EDT (Wed, 10 Oct 2007)
New Revision: 39881
URL: http://svn.boost.org/trac/boost/changeset/39881

Log:
Adjusted limits for Win64 and Sun OS.
Text files modified:
   trunk/libs/math/test/test_bessel_y.cpp | 18 ++++++++++++++++++
   trunk/libs/math/test/test_binomial_coeff.cpp | 2 +-
   trunk/libs/math/test/test_digamma.cpp | 2 +-
   trunk/libs/math/test/test_factorials.cpp | 2 +-
   trunk/libs/math/test/test_gamma.cpp | 25 +++++++++++++++++++++----
   trunk/libs/math/test/test_ibeta.cpp | 36 +++++++++++++++++++++++++++++++++---
   trunk/libs/math/test/test_igamma.cpp | 31 +++++++++++++++++++++++++++++++
   trunk/libs/math/test/test_igamma_inv.cpp | 2 +-
   trunk/libs/math/test/test_laguerre.cpp | 28 ++++++++++++++--------------
   9 files changed, 121 insertions(+), 25 deletions(-)

Modified: trunk/libs/math/test/test_bessel_y.cpp
==============================================================================
--- trunk/libs/math/test/test_bessel_y.cpp (original)
+++ trunk/libs/math/test/test_bessel_y.cpp 2007-10-10 05:28:48 EDT (Wed, 10 Oct 2007)
@@ -143,6 +143,24 @@
          largest_type, // test type(s)
          ".*Yn.*", // test data group
          ".*", 30000, 30000); // test function
+ //
+ // Solaris version of long double has it's own error rates,
+ // again just a touch higher than msvc's 64-bit double:
+ //
+ add_expected_result(
+ "GNU.*", // compiler
+ ".*", // stdlib
+ "Sun.*", // platform
+ largest_type, // test type(s)
+ "Y[0N] Mathworld.*", // test data group
+ ".*", 2000, 2000); // test function
+ add_expected_result(
+ "GNU.*", // compiler
+ ".*", // stdlib
+ "Sun.*", // platform
+ largest_type, // test type(s)
+ "Y[0N].*", // test data group
+ ".*", 200, 200); // test function
 
 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
    if((std::numeric_limits<double>::digits != std::numeric_limits<long double>::digits)

Modified: trunk/libs/math/test/test_binomial_coeff.cpp
==============================================================================
--- trunk/libs/math/test/test_binomial_coeff.cpp (original)
+++ trunk/libs/math/test/test_binomial_coeff.cpp 2007-10-10 05:28:48 EDT (Wed, 10 Oct 2007)
@@ -62,7 +62,7 @@
       ".*", // platform
       largest_type, // test type(s)
       ".*large.*", // test data group
- ".*", 70, 20); // test function
+ ".*", 100, 20); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib

Modified: trunk/libs/math/test/test_digamma.cpp
==============================================================================
--- trunk/libs/math/test/test_digamma.cpp (original)
+++ trunk/libs/math/test/test_digamma.cpp 2007-10-10 05:28:48 EDT (Wed, 10 Oct 2007)
@@ -50,7 +50,7 @@
       ".*", // platform
       ".*", // test type(s)
       ".*Negative.*", // test data group
- ".*", 250, 40); // test function
+ ".*", 300, 40); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib

Modified: trunk/libs/math/test/test_factorials.cpp
==============================================================================
--- trunk/libs/math/test/test_factorials.cpp (original)
+++ trunk/libs/math/test/test_factorials.cpp 2007-10-10 05:28:48 EDT (Wed, 10 Oct 2007)
@@ -132,7 +132,7 @@
       static_cast<T>(1.28674092710208810281923019294164707555099052561945725535047e-26L), tolerance);
    BOOST_CHECK_CLOSE(
       ::boost::math::rising_factorial(static_cast<T>(30.25), 21),
- static_cast<T>(3.93286957998925490693364184100209193343633629069699964020401e33L), tolerance);
+ static_cast<T>(3.93286957998925490693364184100209193343633629069699964020401e33L), tolerance * 2);
    BOOST_CHECK_CLOSE(
       ::boost::math::rising_factorial(static_cast<T>(30.25), -21),
       static_cast<T>(3.35010902064291983728782493133164809108646650368560147505884e-27L), tolerance);

Modified: trunk/libs/math/test/test_gamma.cpp
==============================================================================
--- trunk/libs/math/test/test_gamma.cpp (original)
+++ trunk/libs/math/test/test_gamma.cpp 2007-10-10 05:28:48 EDT (Wed, 10 Oct 2007)
@@ -110,7 +110,7 @@
       "linux", // platform
       largest_type, // test type(s)
       "near (1|2|-10)", // test data group
- "boost::math::lgamma", 50, 30); // test function
+ "boost::math::lgamma", 50, 50); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib
@@ -131,7 +131,7 @@
       "linux", // platform
       "real_concept", // test type(s)
       "near (0|-55)", // test data group
- "boost::math::(t|l)gamma", 130, 60); // test function
+ "boost::math::(t|l)gamma", 130, 80); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib
@@ -176,7 +176,24 @@
       "HP-UX", // platform
       "real_concept", // test type(s)
       "tgamma1pm1.*", // test data group
- "boost::math::tgamma1pm1", 200, 60); // test function
+ "boost::math::tgamma1pm1", 200, 80); // test function
+ //
+ // Sun OS:
+ //
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ "Sun.*", // platform
+ largest_type, // test type(s)
+ "factorials", // test data group
+ "boost::math::tgamma", 300, 50); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ "Sun.*", // platform
+ "real_concept" // test type(s)
+ "factorials", // test data group
+ "boost::math::tgamma", 300, 50); // test function
 
    //
    // Catch all cases come last:
@@ -244,7 +261,7 @@
       ".*", // platform
       "real_concept", // test type(s)
       "near.*", // test data group
- "boost::math::tgamma", 60, 30); // test function
+ "boost::math::tgamma", 80, 60); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib

Modified: trunk/libs/math/test/test_ibeta.cpp
==============================================================================
--- trunk/libs/math/test/test_ibeta.cpp (original)
+++ trunk/libs/math/test/test_ibeta.cpp 2007-10-10 05:28:48 EDT (Wed, 10 Oct 2007)
@@ -102,7 +102,7 @@
    add_expected_result(
       "[^|]*", // compiler
       "[^|]*", // stdlib
- "linux|Mac OS", // platform
+ "linux|Mac OS|Sun.*", // platform
       "double", // test type(s)
       "(?i).*large.*", // test data group
       ".*", 40, 20); // test function
@@ -135,7 +135,37 @@
       largest_type, // test type(s)
       "(?i).*large.*", // test data group
       ".*", 200000, 10000); // test function
-
+ //
+ // Sun OS:
+ //
+ add_expected_result(
+ "[^|]*", // compiler
+ "[^|]*", // stdlib
+ "Sun.*", // platform
+ largest_type, // test type(s)
+ "(?i).*large.*", // test data group
+ ".*", 80000, 10000); // test function
+ add_expected_result(
+ "[^|]*", // compiler
+ "[^|]*", // stdlib
+ "Sun.*", // platform
+ largest_type, // test type(s)
+ "(?i).*small.*", // test data group
+ ".*", 130, 30); // test function
+ add_expected_result(
+ "[^|]*", // compiler
+ "[^|]*", // stdlib
+ "Sun.*", // platform
+ "real_concept", // test type(s)
+ "(?i).*medium.*", // test data group
+ ".*", 200, 40); // test function
+ add_expected_result(
+ "[^|]*", // compiler
+ "[^|]*", // stdlib
+ "Sun.*", // platform
+ "real_concept", // test type(s)
+ "(?i).*small.*", // test data group
+ ".*", 130, 30); // test function
    //
    // MinGW:
    //
@@ -204,7 +234,7 @@
       "[^|]*", // platform
       "real_concept", // test type(s)
       "(?i).*medium.*", // test data group
- ".*", 100, 50); // test function
+ ".*", 200, 50); // test function
    add_expected_result(
       "[^|]*", // compiler
       "[^|]*", // stdlib

Modified: trunk/libs/math/test/test_igamma.cpp
==============================================================================
--- trunk/libs/math/test/test_igamma.cpp (original)
+++ trunk/libs/math/test/test_igamma.cpp 2007-10-10 05:28:48 EDT (Wed, 10 Oct 2007)
@@ -167,6 +167,37 @@
       "real_concept", // test type(s)
       "[^|]*medium[^|]*", // test data group
       "[^|]*", 500, 100); // test function
+ //
+ // Sun OS:
+ //
+ add_expected_result(
+ "[^|]*", // compiler
+ "[^|]*", // stdlib
+ "Sun.*", // platform
+ largest_real, // test type(s)
+ "[^|]*medium[^|]*", // test data group
+ "[^|]*", 500, 100); // test function
+ add_expected_result(
+ "[^|]*", // compiler
+ "[^|]*", // stdlib
+ "Sun.*", // platform
+ largest_real, // test type(s)
+ "[^|]*integer[^|]*", // test data group
+ "[^|]*", 100, 30); // test function
+ add_expected_result(
+ "[^|]*", // compiler
+ "[^|]*", // stdlib
+ "Sun.*", // platform
+ "real_concept", // test type(s)
+ "[^|]*medium[^|]*", // test data group
+ "[^|]*", 500, 100); // test function
+ add_expected_result(
+ "[^|]*", // compiler
+ "[^|]*", // stdlib
+ "Sun.*", // platform
+ "real_concept", // test type(s)
+ "[^|]*integer[^|]*", // test data group
+ "[^|]*", 100, 30); // test function
 
    //
    // Mac OS X:

Modified: trunk/libs/math/test/test_igamma_inv.cpp
==============================================================================
--- trunk/libs/math/test/test_igamma_inv.cpp (original)
+++ trunk/libs/math/test/test_igamma_inv.cpp 2007-10-10 05:28:48 EDT (Wed, 10 Oct 2007)
@@ -171,7 +171,7 @@
       "[^|]*", // platform
       "real_concept", // test type(s)
       "[^|]*small[^|]*", // test data group
- "[^|]*", 3500, 500); // test function
+ "[^|]*", 3700, 500); // test function
 
    //
    // Finish off by printing out the compiler/stdlib/platform names,

Modified: trunk/libs/math/test/test_laguerre.cpp
==============================================================================
--- trunk/libs/math/test/test_laguerre.cpp (original)
+++ trunk/libs/math/test/test_laguerre.cpp 2007-10-10 05:28:48 EDT (Wed, 10 Oct 2007)
@@ -81,31 +81,31 @@
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib
- "linux.*|Mac OS", // platform
+ "linux.*|Mac OS|Sun.*", // platform
       largest_type, // test type(s)
- ".*", // test data group
- ".*", 40000, 1000); // test function
+ ".*", // test data group
+ ".*", 40000, 1000); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib
- "linux.*|Mac OS", // platform
- "real_concept", // test type(s)
- ".*", // test data group
- ".*", 40000, 1000); // test function
+ "linux.*|Mac OS|Sun.*", // platform
+ "real_concept", // test type(s)
+ ".*", // test data group
+ ".*", 40000, 1000); // test function
    add_expected_result(
- ".*mingw.*", // compiler
+ ".*mingw.*", // compiler
       ".*", // stdlib
       ".*", // platform
       largest_type, // test type(s)
- ".*", // test data group
- ".*", 40000, 1000); // test function
+ ".*", // test data group
+ ".*", 40000, 1000); // test function
    add_expected_result(
- ".*mingw.*", // compiler
+ ".*mingw.*", // compiler
       ".*", // stdlib
       ".*", // platform
- "real_concept", // test type(s)
- ".*", // test data group
- ".*", 40000, 1000); // test function
+ "real_concept", // test type(s)
+ ".*", // test data group
+ ".*", 40000, 1000); // test function
 
    //
    // Catch all cases come last:


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk