Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60826 - sandbox/statistics/detail/assign/boost/assign/auto_size/check
From: erwann.rogard_at_[hidden]
Date: 2010-03-25 11:58:12


Author: e_r
Date: 2010-03-25 11:58:12 EDT (Thu, 25 Mar 2010)
New Revision: 60826
URL: http://svn.boost.org/trac/boost/changeset/60826

Log:
m
Added:
   sandbox/statistics/detail/assign/boost/assign/auto_size/check/unit_testing.hpp (contents, props changed)

Added: sandbox/statistics/detail/assign/boost/assign/auto_size/check/unit_testing.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/check/unit_testing.hpp 2010-03-25 11:58:12 EDT (Thu, 25 Mar 2010)
@@ -0,0 +1,47 @@
+//////////////////////////////////////////////////////////////////////////////
+// assign::detail::auto_size::check_unit_testing.hpp //
+// //
+// (C) Copyright 2010 Erwann Rogard //
+// Use, modification and distribution are subject to the //
+// Boost Software License, Version 1.0. (See accompanying file //
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
+//////////////////////////////////////////////////////////////////////////////
+#ifndef BOOST_ASSIGN_DETAIL_AUTO_SIZE_CHECK_UNIT_TESTING_ER_2010_HPP
+#define BOOST_ASSIGN_DETAIL_AUTO_SIZE_CHECK_UNIT_TESTING_ER_2010_HPP
+using boost::unit_test::test_suite;
+
+#define BOOST_ASSIGN_AS_CHECK_add(suffix) \
+ fp = \
+ BOOST_PP_CAT(check_,BOOST_PP_CAT(BOOST_ASSIGN_AS_CHECK_infix,BOOST_PP_CAT(_,suffix)))<int>; \
+ test->add( BOOST_TEST_CASE( fp ) ); \
+/**/
+
+
+#define BOOST_ASSIGN_AS_CHECK_TEST_SUITE \
+test_suite* init_unit_test_suite( int argc, char* argv[] ) \
+{ \
+ test_suite* test = BOOST_TEST_SUITE( "List Test Suite" ); \
+ using namespace boost::assign::detail::auto_size; \
+ void (*fp)(); \
+ BOOST_ASSIGN_AS_CHECK_add(example1) \
+ BOOST_ASSIGN_AS_CHECK_add(iterator) \
+ BOOST_ASSIGN_AS_CHECK_add(array) \
+ BOOST_ASSIGN_AS_CHECK_add(copy_iterator) \
+ BOOST_ASSIGN_AS_CHECK_add(copy_array) \
+ BOOST_ASSIGN_AS_CHECK_add(rebind_array) \
+ BOOST_ASSIGN_AS_CHECK_add(comparison_op) \
+ BOOST_ASSIGN_AS_CHECK_add(converter_list) \
+ BOOST_ASSIGN_AS_CHECK_add(converter_vector) \
+ BOOST_ASSIGN_AS_CHECK_add(converter_array) \
+ BOOST_ASSIGN_AS_CHECK_add(converter_set) \
+ BOOST_ASSIGN_AS_CHECK_add(adapter_stack) \
+ BOOST_ASSIGN_AS_CHECK_add(adapter_queue) \
+ BOOST_ASSIGN_AS_CHECK_add(chain_convert_r) \
+ BOOST_ASSIGN_AS_CHECK_add(chain_convert_l) \
+ BOOST_ASSIGN_AS_CHECK_add(example2) \
+ \
+ return test; \
+} \
+/**/
+
+#endif


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