Merged boost::algorithm::gather and updated tests for Utility, Algorithm and Utility libraries

[SVN r83154]
This commit is contained in:
Marshall Clow
2013-02-25 18:43:26 +00:00
parent 6e098b27aa
commit 8132864884
42 changed files with 221 additions and 194 deletions

View File

@ -9,11 +9,16 @@
import testing ;
alias unit_test_framework
: # sources
/boost//unit_test_framework
;
{
test-suite algorithm/minmax:
: [ run minmax_element_test.cpp
: [ run minmax_element_test.cpp unit_test_framework
: : : : minmax_element ]
[ run minmax_test.cpp
[ run minmax_test.cpp unit_test_framework
: : : : minmax ]
;
}

View File

@ -15,9 +15,11 @@
#include <boost/config.hpp> /* prevents some nasty warns in MSVC */
#include <boost/algorithm/minmax_element.hpp>
#include <boost/test/included/test_exec_monitor.hpp>
#include <boost/iterator/reverse_iterator.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
class custom {
int m_x;
friend bool operator<(custom const& x, custom const& y);
@ -225,17 +227,14 @@ void test(int n BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE(Value))
test_range(first, last, n);
}
int test_main( int argc, char* argv[] )
BOOST_AUTO_TEST_CASE( test_main )
{
#ifndef BOOST_NO_STDC_NAMESPACE
using std::atoi;
#endif
int n = 100;
if (argc > 1) n = atoi(argv[1]);
test<int>(n);
test<custom>(n);
return 0;
}

View File

@ -8,7 +8,9 @@
#include <boost/config.hpp>
#include <boost/algorithm/minmax.hpp>
#include <boost/test/included/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
class custom {
int m_x;
@ -76,10 +78,8 @@ void test(BOOST_EXPLICIT_TEMPLATE_TYPE(Value))
BOOST_CHECK_EQUAL( counter, 1);
}
int test_main( int , char* [] )
BOOST_AUTO_TEST_CASE( test_main )
{
test<int>(); // ("builtin");
test<custom>(); // ("custom ");
return 0;
}