Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / math / test / test_cbrt.hpp
index 91978af..1c3cb51 100644 (file)
@@ -5,7 +5,8 @@
 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #include <boost/math/concepts/real_concept.hpp>
-#include <boost/test/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 #include <boost/test/floating_point_comparison.hpp>
 #include <boost/math/tools/stats.hpp>
 #include <boost/math/tools/test.hpp>
@@ -29,7 +30,7 @@ struct negative_cbrt
    template <class S>
    Real operator()(const S& row)
    {
-      return boost::math::cbrt(-Real(row[1]));
+      return boost::math::cbrt(Real(-Real(row[1])));
    }
 };
 
@@ -37,7 +38,6 @@ struct negative_cbrt
 template <class Real, class T>
 void do_test_cbrt(const T& data, const char* type_name, const char* test_name)
 {
-   typedef typename T::value_type row_type;
    typedef Real                   value_type;
 
    typedef value_type (*pg)(value_type);