mirror of
https://github.com/boostorg/tr1.git
synced 2026-01-19 04:42:14 +00:00
eliminated unit_test_framework and BOOST_MESSAGE
[SVN r74729]
This commit is contained in:
@@ -9,9 +9,8 @@
|
|||||||
#include <boost/tr1/complex.hpp>
|
#include <boost/tr1/complex.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/test/test_tools.hpp>
|
#define BOOST_TEST_MODULE run_complex_overloads
|
||||||
#include <boost/test/included/test_exec_monitor.hpp>
|
#include <boost/test/included/unit_test.hpp>
|
||||||
#include <boost/test/floating_point_comparison.hpp>
|
|
||||||
#include <boost/type_traits/is_same.hpp>
|
#include <boost/type_traits/is_same.hpp>
|
||||||
#include <boost/type_traits/is_floating_point.hpp>
|
#include <boost/type_traits/is_floating_point.hpp>
|
||||||
#include <boost/mpl/if.hpp>
|
#include <boost/mpl/if.hpp>
|
||||||
@@ -21,8 +20,8 @@
|
|||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
|
|
||||||
#ifndef VERBOSE
|
#ifndef VERBOSE
|
||||||
#undef BOOST_MESSAGE
|
#undef BOOST_TEST_MESSAGE
|
||||||
#define BOOST_MESSAGE(x)
|
#define BOOST_TEST_MESSAGE(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -143,13 +142,12 @@ void do_check(int i)
|
|||||||
do_check(static_cast<double>(i));
|
do_check(static_cast<double>(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_main(int, char*[])
|
BOOST_AUTO_TEST_CASE( test_main )
|
||||||
{
|
{
|
||||||
do_check(0);
|
do_check(0);
|
||||||
do_check(0.0);
|
do_check(0.0);
|
||||||
do_check(1);
|
do_check(1);
|
||||||
do_check(1.5);
|
do_check(1.5);
|
||||||
do_check(0.5);
|
do_check(0.5);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user