File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 8
8
See http://www.boost.org/ for latest version.
9
9
*/
10
10
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
+
11
17
#include < algorithm>
12
18
#include < iostream>
13
19
#include < list>
14
20
#include < vector>
15
21
16
- #include < boost/algorithm/is_palindrome.hpp>
17
- #include < boost/test/included/test_exec_monitor.hpp>
18
22
19
23
namespace ba = boost::algorithm;
20
24
@@ -35,7 +39,7 @@ struct functorComparator
35
39
};
36
40
37
41
38
- static void test_is_palindrome ()
42
+ void test_is_palindrome ()
39
43
{
40
44
const std::list<int > empty;
41
45
const std::vector<char > singleElement{' z' };
@@ -58,9 +62,7 @@ static void test_is_palindrome()
58
62
// BOOST_CHECK ( ba::is_palindrome(singleElement, lambdaComparator));
59
63
}
60
64
61
- int test_main ( int , char * [] )
65
+ BOOST_AUTO_TEST_CASE ( test_main )
62
66
{
63
- test_is_palindrome ();
64
-
65
- return 0 ;
67
+ test_is_palindrome ();
66
68
}
You can’t perform that action at this time.
0 commit comments