Skip to content

Commit 1ec1cd3

Browse files
committed
Fixed is_palindrome_test
1 parent 9bee197 commit 1ec1cd3

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

test/is_palindrome_test.cpp

+9-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88
See http://www.boost.org/ for latest version.
99
*/
1010

11+
#include <boost/config.hpp>
12+
#include <boost/algorithm/is_palindrome.hpp>
13+
14+
#define BOOST_TEST_MAIN
15+
#include <boost/test/unit_test.hpp>
16+
1117
#include <algorithm>
1218
#include <iostream>
1319
#include <list>
1420
#include <vector>
1521

16-
#include <boost/algorithm/is_palindrome.hpp>
17-
#include <boost/test/included/test_exec_monitor.hpp>
1822

1923
namespace ba = boost::algorithm;
2024

@@ -35,7 +39,7 @@ struct functorComparator
3539
};
3640

3741

38-
static void test_is_palindrome()
42+
void test_is_palindrome()
3943
{
4044
const std::list<int> empty;
4145
const std::vector<char> singleElement{'z'};
@@ -58,9 +62,7 @@ static void test_is_palindrome()
5862
//BOOST_CHECK ( ba::is_palindrome(singleElement, lambdaComparator));
5963
}
6064

61-
int test_main( int, char * [] )
65+
BOOST_AUTO_TEST_CASE( test_main )
6266
{
63-
test_is_palindrome();
64-
65-
return 0;
67+
test_is_palindrome ();
6668
}

0 commit comments

Comments
 (0)