From 1ec1cd304553567a9653c9662e325e9a029e86e4 Mon Sep 17 00:00:00 2001 From: Alexander Zaitsev Date: Wed, 6 Jul 2016 11:57:05 +0300 Subject: [PATCH] Fixed is_palindrome_test --- test/is_palindrome_test.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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 (); }