Updated to use Boost.Test from 1.29.0

[SVN r715]
This commit is contained in:
Eric Friedman
2002-11-27 00:22:57 +00:00
parent 94ee9ddc97
commit 72667a6658

View File

@@ -16,10 +16,10 @@
#include "boost/optional.hpp" #include "boost/optional.hpp"
#define BOOST_INCLUDE_MAIN #include "boost/test/minimal.hpp"
#include <boost/test/test_tools.hpp>
#include "boost/cstdlib.hpp" #include "boost/cstdlib.hpp"
boost::optional<double> f(const boost::optional<bool>& return_flag, int arg) boost::optional<double> f(const boost::optional<bool>& return_flag, int arg)
{ {
if (!return_flag.empty() && return_flag.get() == true) if (!return_flag.empty() && return_flag.get() == true)
@@ -34,7 +34,7 @@ boost::optional<double> f(const boost::optional<bool>& return_flag, int arg)
int test_main( int, char *[] ) int test_main( int, char *[] )
{ {
boost::optional<double> result; boost::optional<double> result;
BOOST_TEST(( /* BOOST_TEST((
result.empty() result.empty()
)); ));
@@ -53,6 +53,6 @@ int test_main( int, char *[] )
BOOST_TEST(( BOOST_TEST((
result.empty() result.empty()
)); ));
*/
return boost::exit_success; return boost::exit_success;
} }