|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74729 - trunk/libs/tr1/test
From: gennadiy.rozental_at_[hidden]
Date: 2011-10-05 05:47:43
Author: rogeeff
Date: 2011-10-05 05:47:42 EDT (Wed, 05 Oct 2011)
New Revision: 74729
URL: http://svn.boost.org/trac/boost/changeset/74729
Log:
eliminated unit_test_framework and BOOST_MESSAGE
Text files modified:
trunk/libs/tr1/test/run_complex_overloads.cpp | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
Modified: trunk/libs/tr1/test/run_complex_overloads.cpp
==============================================================================
--- trunk/libs/tr1/test/run_complex_overloads.cpp (original)
+++ trunk/libs/tr1/test/run_complex_overloads.cpp 2011-10-05 05:47:42 EDT (Wed, 05 Oct 2011)
@@ -9,9 +9,8 @@
#include <boost/tr1/complex.hpp>
#endif
-#include <boost/test/test_tools.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
-#include <boost/test/floating_point_comparison.hpp>
+#define BOOST_TEST_MODULE run_complex_overloads
+#include <boost/test/included/unit_test.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/type_traits/is_floating_point.hpp>
#include <boost/mpl/if.hpp>
@@ -21,8 +20,8 @@
#include <iomanip>
#ifndef VERBOSE
-#undef BOOST_MESSAGE
-#define BOOST_MESSAGE(x)
+#undef BOOST_TEST_MESSAGE
+#define BOOST_TEST_MESSAGE(x)
#endif
//
@@ -143,13 +142,12 @@
do_check(static_cast<double>(i));
}
-int test_main(int, char*[])
+BOOST_AUTO_TEST_CASE( test_main )
{
do_check(0);
do_check(0.0);
do_check(1);
do_check(1.5);
do_check(0.5);
- return 0;
}
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