Boost logo

Boost-Commit :

From: pbristow_at_[hidden]
Date: 2007-05-25 07:23:36


Author: pbristow
Date: 2007-05-25 07:23:35 EDT (Fri, 25 May 2007)
New Revision: 4241
URL: http://svn.boost.org/trac/boost/changeset/4241

Log:
corrected spelling, suppressed warnings and showed sample output.

Text files modified:
   sandbox/math_toolkit/libs/math/test/test_classify.cpp | 32 ++++++++++++++++++++++++++++++--
   1 files changed, 30 insertions(+), 2 deletions(-)

Modified: sandbox/math_toolkit/libs/math/test/test_classify.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/test/test_classify.cpp (original)
+++ sandbox/math_toolkit/libs/math/test/test_classify.cpp 2007-05-25 07:23:35 EDT (Fri, 25 May 2007)
@@ -1,4 +1,5 @@
-// (C) Copyright John Maddock 2006.
+// Copyright John Maddock 2006.
+// Copyright Paul A. Bristow 2007
 // Use, modification and distribution are subject to the
 // Boost Software License, Version 1.0. (See accompanying file
 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -10,6 +11,10 @@
 #include <boost/math/concepts/real_concept.hpp>
 #include <boost/test/included/test_exec_monitor.hpp>
 
+#ifdef _MSC_VER
+#pragma warning(disable: 4127) // conditional expression is constant
+#endif
+
 template <class T>
 void test_classify(T t, const char* type)
 {
@@ -92,7 +97,7 @@
    }
    else
    {
- std::cout << "Quite NaN's not tested" << std::endl;
+ std::cout << "Quiet NaN's not tested" << std::endl;
    }
    if(std::numeric_limits<T>::has_signaling_NaN)
    {
@@ -133,3 +138,26 @@
   return 0;
 }
 
+/*
+Autorun "i:\Boost-sandbox\math_toolkit\libs\math\test\MSVC80\debug\test_classify.exe"
+Running 1 test case...
+FP_ZERO: 0
+FP_NORMAL: 1
+FP_INFINITE: 2
+FP_NAN: 3
+FP_SUBNORMAL: 4
+Testing type float
+Testing type double
+Testing type long double
+Testing type real_concept
+Denormalised forms not tested
+Infinity not tested
+Quiet NaN's not tested
+Signaling NaN's not tested
+Test suite "Test Program" passed with:
+ 79 assertions out of 79 passed
+ 1 test case out of 1 passed
+ Test case "test_main_caller( argc, argv )" passed with:
+ 79 assertions out of 79 passed
+
+*/


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