diff --git a/test/is_palindrome_test.cpp b/test/is_palindrome_test.cpp index 673e95b..ed7b1c4 100644 --- a/test/is_palindrome_test.cpp +++ b/test/is_palindrome_test.cpp @@ -8,13 +8,17 @@ See http://www.boost.org/ for latest version. */ +#include +#include + +#define BOOST_TEST_MAIN +#include + #include #include #include #include -#include -#include namespace ba = boost::algorithm; @@ -35,7 +39,7 @@ struct functorComparator }; -static void test_is_palindrome() +void test_is_palindrome() { const std::list empty; const std::vector singleElement{'z'}; @@ -58,9 +62,7 @@ static void test_is_palindrome() //BOOST_CHECK ( ba::is_palindrome(singleElement, lambdaComparator)); } -int test_main( int, char * [] ) +BOOST_AUTO_TEST_CASE( test_main ) { - test_is_palindrome(); - - return 0; + test_is_palindrome (); }