Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50725 - sandbox/math_toolkit/libs/math/test
From: pbristow_at_[hidden]
Date: 2009-01-22 06:27:35


Author: pbristow
Date: 2009-01-22 06:27:34 EST (Thu, 22 Jan 2009)
New Revision: 50725
URL: http://svn.boost.org/trac/boost/changeset/50725

Log:
Warning suppression

Text files modified:
   sandbox/math_toolkit/libs/math/test/test_legendre.cpp | 34 +++++++++++++++++++---------------
   1 files changed, 19 insertions(+), 15 deletions(-)

Modified: sandbox/math_toolkit/libs/math/test/test_legendre.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/test/test_legendre.cpp (original)
+++ sandbox/math_toolkit/libs/math/test/test_legendre.cpp 2009-01-22 06:27:34 EST (Thu, 22 Jan 2009)
@@ -5,6 +5,10 @@
 
 #include <pch.hpp>
 
+#ifdef _MSC_VER
+# pragma warning (disable : 4756) // overflow in constant arithmetic
+#endif
+
 #include <boost/math/concepts/real_concept.hpp>
 #include <boost/test/included/test_exec_monitor.hpp>
 #include <boost/test/floating_point_comparison.hpp>
@@ -20,17 +24,17 @@
 // DESCRIPTION:
 // ~~~~~~~~~~~~
 //
-// This file tests the legendre polynomials.
+// This file tests the legendre polynomials.
 // There are two sets of tests, spot
 // tests which compare our results with selected values computed
-// using the online special function calculator at
+// using the online special function calculator at
 // functions.wolfram.com, while the bulk of the accuracy tests
 // use values generated with NTL::RR at 1000-bit precision
 // and our generic versions of these functions.
 //
 // Note that when this file is first run on a new platform many of
 // these tests will fail: the default accuracy is 1 epsilon which
-// is too tight for most platforms. In this situation you will
+// is too tight for most platforms. In this situation you will
 // need to cast a human eye over the error rates reported and make
 // a judgement as to whether they are acceptable. Either way please
 // report the results to the Boost mailing list. Acceptable rates of
@@ -184,7 +188,7 @@
    // Finish off by printing out the compiler/stdlib/platform names,
    // we do this to make it easier to mark up expected error rates.
    //
- std::cout << "Tests run with " << BOOST_COMPILER << ", "
+ std::cout << "Tests run with " << BOOST_COMPILER << ", "
       << BOOST_STDLIB << ", " << BOOST_PLATFORM << std::endl;
 }
 
@@ -210,16 +214,16 @@
    // test legendre_p against data:
    //
    result = boost::math::tools::test(
- data,
- bind_func_int1(funcp, 0, 1),
+ data,
+ bind_func_int1(funcp, 0, 1),
       extract_result(2));
    handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::legendre_p", test_name);
 #ifdef TEST_OTHER
    if(::boost::is_floating_point<value_type>::value){
       funcp = other::legendre_p;
    result = boost::math::tools::test(
- data,
- bind_func_int1(funcp, 0, 1),
+ data,
+ bind_func_int1(funcp, 0, 1),
       extract_result(2));
       print_test_result(result, data[result.worst()], result.worst(), type_name, "other::legendre_p");
    }
@@ -236,16 +240,16 @@
    // test legendre_q against data:
    //
    result = boost::math::tools::test(
- data,
- bind_func_int1(funcp2, 0, 1),
+ data,
+ bind_func_int1(funcp2, 0, 1),
       extract_result(3));
    handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::legendre_q", test_name);
 #ifdef TEST_OTHER
    if(::boost::is_floating_point<value_type>::value){
       funcp = other::legendre_q;
    result = boost::math::tools::test(
- data,
- bind_func_int1(funcp2, 0, 1),
+ data,
+ bind_func_int1(funcp2, 0, 1),
       extract_result(3));
       print_test_result(result, data[result.worst()], result.worst(), type_name, "other::legendre_q");
    }
@@ -277,8 +281,8 @@
    // test legendre_p against data:
    //
    result = boost::math::tools::test(
- data,
- bind_func_int2(funcp, 0, 1, 2),
+ data,
+ bind_func_int2(funcp, 0, 1, 2),
       extract_result(3));
    handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::legendre_p", test_name);
    std::cout << std::endl;
@@ -292,7 +296,7 @@
    //
    // The contents are as follows, each row of data contains
    // three items, input value a, input value b and erf(a, b):
- //
+ //
 # include "legendre_p.ipp"
 
    do_test_legendre_p(legendre_p, name, "Legendre Polynomials: Small Values");


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