mirror of
https://github.com/boostorg/utility.git
synced 2025-07-29 04:17:42 +02:00
Update Boost.StringRef tests to use newer Boost.Test features
[SVN r82825]
This commit is contained in:
@ -12,7 +12,8 @@
|
||||
|
||||
#include <boost/utility/string_ref.hpp>
|
||||
|
||||
#include <boost/test/included/test_exec_monitor.hpp>
|
||||
#define BOOST_TEST_MAIN
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
typedef boost::string_ref string_ref;
|
||||
|
||||
@ -240,7 +241,8 @@ const char *test_strings [] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
int test_main( int , char* [] ) {
|
||||
BOOST_AUTO_TEST_CASE( test_main )
|
||||
{
|
||||
const char **p = &test_strings[0];
|
||||
|
||||
while ( *p != NULL ) {
|
||||
@ -251,6 +253,4 @@ int test_main( int , char* [] ) {
|
||||
|
||||
p++;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user