Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51611 - trunk/libs/math/test
From: john_at_[hidden]
Date: 2009-03-04 13:25:26


Author: johnmaddock
Date: 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
New Revision: 51611
URL: http://svn.boost.org/trac/boost/changeset/51611

Log:
Add some missing #includes and adjust expected error rates.
Text files modified:
   trunk/libs/math/test/test_beta.cpp | 4 ++--
   trunk/libs/math/test/test_beta_dist.cpp | 2 +-
   trunk/libs/math/test/test_binomial_coeff.cpp | 4 ++--
   trunk/libs/math/test/test_factorials.cpp | 2 +-
   trunk/libs/math/test/test_ibeta.cpp | 4 ++--
   trunk/libs/math/test/test_igamma.cpp | 2 +-
   trunk/libs/math/test/test_logistic_dist.cpp | 2 +-
   trunk/libs/math/test/test_nc_beta.cpp | 4 ++--
   trunk/libs/math/test/test_negative_binomial.cpp | 2 +-
   trunk/libs/math/test/test_policy.cpp | 1 +
   trunk/libs/math/test/test_policy_2.cpp | 1 +
   trunk/libs/math/test/test_policy_3.cpp | 1 +
   trunk/libs/math/test/test_policy_4.cpp | 1 +
   trunk/libs/math/test/test_policy_5.cpp | 1 +
   trunk/libs/math/test/test_policy_6.cpp | 1 +
   15 files changed, 19 insertions(+), 13 deletions(-)

Modified: trunk/libs/math/test/test_beta.cpp
==============================================================================
--- trunk/libs/math/test/test_beta.cpp (original)
+++ trunk/libs/math/test/test_beta.cpp 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
@@ -80,14 +80,14 @@
       ".*", // platform
       "(long\\s+)?double", // test type(s)
       "Beta Function: Medium.*", // test data group
- "boost::math::beta", 130, 35); // test function
+ "boost::math::beta", 160, 35); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
       "(long\\s+)?double", // test type(s)
       "Beta Function: Divergent.*", // test data group
- "boost::math::beta", 20, 6); // test function
+ "boost::math::beta", 30, 6); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib

Modified: trunk/libs/math/test/test_beta_dist.cpp
==============================================================================
--- trunk/libs/math/test/test_beta_dist.cpp (original)
+++ trunk/libs/math/test/test_beta_dist.cpp 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
@@ -131,7 +131,7 @@
    cout << "std::numeric_limits::epsilon = " << std::numeric_limits<RealType>::epsilon() <<endl;
    cout << "epsilon = " << tolerance;
 
- tolerance *= 1000; // Note: NO * 100 because is fraction, NOT %.
+ tolerance *= 100000; // Note: NO * 100 because is fraction, NOT %.
    cout << ", Tolerance = " << tolerance * 100 << "%." << endl;
 
   // RealType teneps = boost::math::tools::epsilon<RealType>() * 10;

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 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
@@ -69,14 +69,14 @@
       ".*", // platform
       "real_concept", // test type(s)
       ".*large.*", // test data group
- ".*", 200, 100); // test function
+ ".*", 250, 100); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
       "real_concept", // test type(s)
       ".*", // test data group
- ".*", 100, 30); // test function
+ ".*", 150, 30); // 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 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
@@ -140,7 +140,7 @@
       static_cast<T>(3.35010902064291983728782493133164809108646650368560147505884e-27L), tolerance);
    BOOST_CHECK_CLOSE(
       ::boost::math::rising_factorial(static_cast<T>(-30.25), 21),
- static_cast<T>(-9.76168312768123676601980433377916854311706629232503473758698e26L), tolerance);
+ static_cast<T>(-9.76168312768123676601980433377916854311706629232503473758698e26L), tolerance * 2);
    BOOST_CHECK_CLOSE(
       ::boost::math::rising_factorial(static_cast<T>(-30.25), -21),
       static_cast<T>(-1.50079704000923674318934280259377728203516775215430875839823e-34L), 2 * tolerance);

Modified: trunk/libs/math/test/test_ibeta.cpp
==============================================================================
--- trunk/libs/math/test/test_ibeta.cpp (original)
+++ trunk/libs/math/test/test_ibeta.cpp 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
@@ -230,7 +230,7 @@
       "[^|]*", // platform
       largest_type, // test type(s)
       "(?i).*small.*", // test data group
- ".*", 60, 10); // test function
+ ".*", 90, 25); // test function
    add_expected_result(
       "[^|]*", // compiler
       "[^|]*", // stdlib
@@ -252,7 +252,7 @@
       "[^|]*", // platform
       "real_concept", // test type(s)
       "(?i).*small.*", // test data group
- ".*", 60, 15); // test function
+ ".*", 90, 25); // 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 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
@@ -93,7 +93,7 @@
       "linux", // platform
       "real_concept", // test type(s)
       "[^|]*medium[^|]*", // test data group
- "[^|]*", 600, 200); // test function
+ "[^|]*", 1000, 200); // test function
    add_expected_result(
       "[^|]*", // compiler
       "[^|]*", // stdlib

Modified: trunk/libs/math/test/test_logistic_dist.cpp
==============================================================================
--- trunk/libs/math/test/test_logistic_dist.cpp (original)
+++ trunk/libs/math/test/test_logistic_dist.cpp 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
@@ -52,7 +52,7 @@
          complement(logistic_distribution<RealType>(location,scale),
          q)),
          x,
- tolerance); // %
+ 2 * tolerance); // %
    }
 }
 

Modified: trunk/libs/math/test/test_nc_beta.cpp
==============================================================================
--- trunk/libs/math/test/test_nc_beta.cpp (original)
+++ trunk/libs/math/test/test_nc_beta.cpp 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
@@ -107,14 +107,14 @@
          "[^|]*", // platform
          largest_type, // test type(s)
          "[^|]*medium[^|]*", // test data group
- "[^|]*", 900, 500); // test function
+ "[^|]*", 1200, 500); // test function
       add_expected_result(
          "[^|]*", // compiler
          "[^|]*", // stdlib
          "[^|]*", // platform
          largest_type, // test type(s)
          "[^|]*large[^|]*", // test data group
- "[^|]*", 40000, 5500); // test function
+ "[^|]*", 40000, 6000); // test function
    }
 #endif
    //

Modified: trunk/libs/math/test/test_negative_binomial.cpp
==============================================================================
--- trunk/libs/math/test/test_negative_binomial.cpp (original)
+++ trunk/libs/math/test/test_negative_binomial.cpp 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
@@ -197,7 +197,7 @@
   RealType tolerance = (std::max)
     (boost::math::tools::epsilon<RealType>(),
     static_cast<RealType>(std::numeric_limits<double>::epsilon()));
- tolerance *= 100 * 1000;
+ tolerance *= 100 * 100000.0f;
 
   cout << "Tolerance = " << tolerance << "%." << endl;
 

Modified: trunk/libs/math/test/test_policy.cpp
==============================================================================
--- trunk/libs/math/test/test_policy.cpp (original)
+++ trunk/libs/math/test/test_policy.cpp 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
@@ -9,6 +9,7 @@
 #include <boost/math/policies/policy.hpp>
 #include <boost/type_traits/is_same.hpp>
 #include <boost/test/test_exec_monitor.hpp> // for test_main
+#include <iostream>
 
 template <class P1, class P2>
 bool check_same(const P1&, const P2&)

Modified: trunk/libs/math/test/test_policy_2.cpp
==============================================================================
--- trunk/libs/math/test/test_policy_2.cpp (original)
+++ trunk/libs/math/test/test_policy_2.cpp 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
@@ -9,6 +9,7 @@
 #include <boost/math/policies/policy.hpp>
 #include <boost/type_traits/is_same.hpp>
 #include <boost/test/test_exec_monitor.hpp> // for test_main
+#include <iostream>
 
 template <class P1, class P2>
 bool check_same(const P1&, const P2&)

Modified: trunk/libs/math/test/test_policy_3.cpp
==============================================================================
--- trunk/libs/math/test/test_policy_3.cpp (original)
+++ trunk/libs/math/test/test_policy_3.cpp 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
@@ -9,6 +9,7 @@
 #include <boost/math/policies/policy.hpp>
 #include <boost/type_traits/is_same.hpp>
 #include <boost/test/test_exec_monitor.hpp> // for test_main
+#include <iostream>
 
 template <class P1, class P2>
 bool check_same(const P1&, const P2&)

Modified: trunk/libs/math/test/test_policy_4.cpp
==============================================================================
--- trunk/libs/math/test/test_policy_4.cpp (original)
+++ trunk/libs/math/test/test_policy_4.cpp 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
@@ -9,6 +9,7 @@
 #include <boost/math/policies/policy.hpp>
 #include <boost/type_traits/is_same.hpp>
 #include <boost/test/test_exec_monitor.hpp> // for test_main
+#include <iostream>
 
 template <class P1, class P2>
 bool check_same(const P1&, const P2&)

Modified: trunk/libs/math/test/test_policy_5.cpp
==============================================================================
--- trunk/libs/math/test/test_policy_5.cpp (original)
+++ trunk/libs/math/test/test_policy_5.cpp 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
@@ -9,6 +9,7 @@
 #include <boost/math/policies/policy.hpp>
 #include <boost/type_traits/is_same.hpp>
 #include <boost/test/test_exec_monitor.hpp> // for test_main
+#include <iostream>
 
 template <class P1, class P2>
 bool check_same(const P1&, const P2&)

Modified: trunk/libs/math/test/test_policy_6.cpp
==============================================================================
--- trunk/libs/math/test/test_policy_6.cpp (original)
+++ trunk/libs/math/test/test_policy_6.cpp 2009-03-04 13:25:24 EST (Wed, 04 Mar 2009)
@@ -9,6 +9,7 @@
 #include <boost/math/policies/policy.hpp>
 #include <boost/type_traits/is_same.hpp>
 #include <boost/test/test_exec_monitor.hpp> // for test_main
+#include <iostream>
 
 template <class P1, class P2>
 bool check_same(const P1&, const P2&)


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