|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74396 - trunk/libs/test/test
From: gennadiy.rozental_at_[hidden]
Date: 2011-09-15 23:13:47
Author: rogeeff
Date: 2011-09-15 23:13:46 EDT (Thu, 15 Sep 2011)
New Revision: 74396
URL: http://svn.boost.org/trac/boost/changeset/74396
Log:
switch to auto tools
Text files modified:
trunk/libs/test/test/algorithms_test.cpp | 24 +++++-------------------
1 files changed, 5 insertions(+), 19 deletions(-)
Modified: trunk/libs/test/test/algorithms_test.cpp
==============================================================================
--- trunk/libs/test/test/algorithms_test.cpp (original)
+++ trunk/libs/test/test/algorithms_test.cpp 2011-09-15 23:13:46 EDT (Thu, 15 Sep 2011)
@@ -13,6 +13,7 @@
// ***************************************************************************
// Boost.Test
+#define BOOST_TEST_MODULE Boost.Test algorithms test
#include <boost/test/unit_test.hpp>
#include <boost/test/utils/class_properties.hpp>
#include <boost/test/utils/basic_cstring/basic_cstring.hpp>
@@ -34,7 +35,7 @@
//____________________________________________________________________________//
-void test_mismatch()
+BOOST_AUTO_TEST_CASE( test_mismatch )
{
const_string cs1( "test_string" );
const_string cs2( "test_stream" );
@@ -55,7 +56,7 @@
//____________________________________________________________________________//
-void test_find_first_not_of()
+BOOST_AUTO_TEST_CASE( test_find_first_not_of )
{
const_string cs( "test_string" );
const_string another( "tes" );
@@ -73,7 +74,7 @@
//____________________________________________________________________________//
-void test_find_last_of()
+BOOST_AUTO_TEST_CASE( test_find_last_of )
{
const_string cs( "test_string" );
const_string another( "tes" );
@@ -94,7 +95,7 @@
//____________________________________________________________________________//
-void test_find_last_not_of()
+BOOST_AUTO_TEST_CASE( test_find_last_not_of )
{
const_string cs( "test_string" );
const_string another( "string" );
@@ -112,19 +113,4 @@
//____________________________________________________________________________//
-utf::test_suite*
-init_unit_test_suite( int /* argc */, char* /* argv */ [] )
-{
- utf::test_suite* test= BOOST_TEST_SUITE("Algorithms test");
-
- test->add( BOOST_TEST_CASE( test_mismatch ) );
- test->add( BOOST_TEST_CASE( test_find_first_not_of ) );
- test->add( BOOST_TEST_CASE( test_find_last_of ) );
- test->add( BOOST_TEST_CASE( test_find_last_not_of ) );
-
- return test;
-}
-
-//____________________________________________________________________________//
-
// EOF
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk