|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65528 - sandbox/variadic_macro_data/libs/variadic_macro_data/test
From: eldiener_at_[hidden]
Date: 2010-09-22 00:36:57
Author: eldiener
Date: 2010-09-22 00:36:56 EDT (Wed, 22 Sep 2010)
New Revision: 65528
URL: http://svn.boost.org/trac/boost/changeset/65528
Log:
Testing for TUPLE_REM and TUPLE_EAT macros.
Text files modified:
sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsTuple.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsTuple.cpp
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsTuple.cpp (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/test/TestDataAsTuple.cpp 2010-09-22 00:36:56 EDT (Wed, 22 Sep 2010)
@@ -2,6 +2,7 @@
#include <boost/detail/lightweight_test.hpp>
#include <boost/preprocessor/list/size.hpp>
#include <boost/preprocessor/seq/size.hpp>
+#include <boost/preprocessor/tuple/rem.hpp>
#include <vector>
#include <boost/type_traits/is_same.hpp>
@@ -38,8 +39,12 @@
VMD_PP_REPEAT_TUPLE(VMD_TEST_ADD_TO_INT,VMD_TEST_TUPLE_NUMBERS)
addedNumber += VMD_DATA_ELEMENT(5,VMD_PP_TUPLE_TO_DATA(VMD_TEST_TUPLE_NUMBERS));
+ addedNumber += VMD_DATA_ELEMENT(3,VMD_PP_TUPLE_REM(VMD_PP_TUPLE_SIZE(VMD_TEST_TUPLE_NUMBERS))(23,45,147,6,7743,12,67,43,89045,82));
+ addedNumber += VMD_DATA_ELEMENT(4,VMD_PP_TUPLE_REM_CTOR(VMD_TEST_TUPLE_NUMBERS));
- BOOST_TEST_EQ(addedNumber,23+45+147+6+7743+12+67+43+89045+82+12);
+ VMD_PP_TUPLE_EAT(VMD_PP_TUPLE_SIZE(VMD_TEST_TUPLE_NUMBERS))(23,45,147,6,7743,12,67,43,89045,82)
+
+ BOOST_TEST_EQ(addedNumber,23+45+147+6+7743+12+67+43+89045+82+12+6+7743);
int listSize(BOOST_PP_LIST_SIZE(VMD_PP_TUPLE_TO_LIST(VMD_TEST_TUPLE_NUMBERS2)));
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