Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77273 - trunk/libs/math/test
From: pbristow_at_[hidden]
Date: 2012-03-08 13:28:48


Author: pbristow
Date: 2012-03-08 13:28:47 EST (Thu, 08 Mar 2012)
New Revision: 77273
URL: http://svn.boost.org/trac/boost/changeset/77273

Log:
Some comments added.
Text files modified:
   trunk/libs/math/test/test_nonfinite_trap.cpp | 16 ++++++++++------
   1 files changed, 10 insertions(+), 6 deletions(-)

Modified: trunk/libs/math/test/test_nonfinite_trap.cpp
==============================================================================
--- trunk/libs/math/test/test_nonfinite_trap.cpp (original)
+++ trunk/libs/math/test/test_nonfinite_trap.cpp 2012-03-08 13:28:47 EST (Thu, 08 Mar 2012)
@@ -5,23 +5,26 @@
 // (See accompanying file LICENSE_1_0.txt
 // or copy at http://www.boost.org/LICENSE_1_0.txt)
 
+// test_nonfinite_trap.cpp
+
 #ifdef _MSC_VER
 # pragma warning(disable : 4702)
 #endif
 
 #define BOOST_TEST_MAIN
 
-#include <locale>
-#include <sstream>
 #include <boost/test/auto_unit_test.hpp>
-#include "almost_equal.ipp"
-#include "s_.ipp"
+#include "almost_equal.ipp" // Similar to BOOST_CLOSE_FRACTION.
+#include "s_.ipp" // To create test strings like std::basic_string<CharType> s = S_("0 -0");
 #include <boost/math/special_functions/nonfinite_num_facets.hpp>
 
+#include <locale>
+#include <sstream>
+
 namespace {
 
-// the anonymous namespace resolves ambiguities on platforms
-// with fpclassify etc functions at global scope
+// Using an anonymous namespace resolves ambiguities on platforms
+// with fpclassify etc functions at global scope.
 
 using namespace boost::math;
 using boost::math::signbit;
@@ -233,3 +236,4 @@
 //------------------------------------------------------------------------------
 
 } // anonymous namespace
+


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