|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69820 - sandbox/tti/libs/tti/test
From: eldiener_at_[hidden]
Date: 2011-03-10 10:03:11
Author: eldiener
Date: 2011-03-10 10:03:10 EST (Thu, 10 Mar 2011)
New Revision: 69820
URL: http://svn.boost.org/trac/boost/changeset/69820
Log:
Updated tests to use generate macros
Text files modified:
sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp.cpp | 40 ++++++++++++++++++++--------------------
sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_compile.cpp | 30 +++++++++++++++---------------
sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_fail.cpp | 6 +++---
sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_fail2.cpp | 4 ++--
sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_fail3.cpp | 2 +-
5 files changed, 41 insertions(+), 41 deletions(-)
Modified: sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp.cpp 2011-03-10 10:03:10 EST (Thu, 10 Mar 2011)
@@ -10,15 +10,15 @@
BOOST_TEST((boost::tti::mf_has_template_check_params
<
- boost::tti::HT_Str<_>,
- boost::tti::member_type_AStructType<AType>
+ BOOST_TTI_TRAIT_GEN(HT_Str)<_>,
+ BOOST_TTI_MEMBER_TYPE_GEN(AStructType)<AType>
>
::value
));
BOOST_TEST((boost::tti::mf_has_template_check_params
<
- boost::tti::has_template_check_params_AnotherMemberTemplate<_>,
+ BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS_GEN(AnotherMemberTemplate)<_>,
boost::mpl::identity<AType>
>
::value
@@ -26,7 +26,7 @@
BOOST_TEST((!boost::tti::mf_has_template_check_params
<
- boost::tti::WrongParametersForMP<_>,
+ BOOST_TTI_TRAIT_GEN(WrongParametersForMP)<_>,
boost::mpl::identity<AnotherType>
>
::value
@@ -34,11 +34,11 @@
BOOST_TEST((boost::tti::mf_has_template_check_params
<
- boost::tti::has_template_check_params_CTManyParameters<_>,
+ BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS_GEN(CTManyParameters)<_>,
boost::tti::mf_member_type
<
- boost::tti::member_type_CType<_>,
- boost::tti::MT_BType<AType>
+ BOOST_TTI_MEMBER_TYPE_GEN(CType)<_>,
+ BOOST_TTI_TRAIT_GEN(MT_BType)<AType>
>
>
::value
@@ -46,11 +46,11 @@
BOOST_TEST((!boost::tti::mf_has_template_check_params
<
- boost::tti::has_template_check_params_TemplateNotExist<_>,
+ BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS_GEN(TemplateNotExist)<_>,
boost::tti::mf_member_type
<
- boost::tti::member_type_CType<_>,
- boost::tti::MT_BType<AType>
+ BOOST_TTI_MEMBER_TYPE_GEN(CType)<_>,
+ BOOST_TTI_TRAIT_GEN(MT_BType)<AType>
>
>
::value
@@ -58,15 +58,15 @@
BOOST_TEST((boost::tti::mf_has_template_check_params
<
- boost::tti::MF_HT_Str,
- boost::tti::member_type_AStructType<AType>
+ BOOST_TTI_TRAIT_GEN(MF_HT_Str),
+ BOOST_TTI_MEMBER_TYPE_GEN(AStructType)<AType>
>
::value
));
BOOST_TEST((boost::tti::mf_has_template_check_params
<
- boost::tti::mtfc_has_template_check_params_AnotherMemberTemplate,
+ BOOST_TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS_GEN(AnotherMemberTemplate),
boost::mpl::identity<AType>
>
::value
@@ -74,7 +74,7 @@
BOOST_TEST((!boost::tti::mf_has_template_check_params
<
- boost::tti::AllWrongParametersForMP,
+ BOOST_TTI_TRAIT_GEN(AllWrongParametersForMP),
boost::mpl::identity<AnotherType>
>
::value
@@ -82,11 +82,11 @@
BOOST_TEST((boost::tti::mf_has_template_check_params
<
- boost::tti::mtfc_has_template_check_params_CTManyParameters,
+ BOOST_TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS_GEN(CTManyParameters),
boost::tti::mf_member_type
<
- boost::tti::member_type_CType<_>,
- boost::tti::MT_BType<AType>
+ BOOST_TTI_MEMBER_TYPE_GEN(CType)<_>,
+ BOOST_TTI_TRAIT_GEN(MT_BType)<AType>
>
>
::value
@@ -94,11 +94,11 @@
BOOST_TEST((!boost::tti::mf_has_template_check_params
<
- boost::tti::mtfc_has_template_check_params_TemplateNotExist,
+ BOOST_TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS_GEN(TemplateNotExist),
boost::tti::mf_member_type
<
- boost::tti::mtfc_member_type_CType,
- boost::tti::MT_BType<AType>
+ BOOST_TTI_MTFC_MEMBER_TYPE_GEN(CType),
+ BOOST_TTI_TRAIT_GEN(MT_BType)<AType>
>
>
::value
Modified: sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_compile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_compile.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_compile.cpp 2011-03-10 10:03:10 EST (Thu, 10 Mar 2011)
@@ -12,11 +12,11 @@
boost::tti::mf_has_template_check_params
<
- boost::tti::mtfc_has_template_check_params_TemplateNotExist,
+ BOOST_TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS_GEN(TemplateNotExist),
boost::tti::mf_member_type
<
- boost::tti::member_type_CType<_>,
- boost::tti::MT_BType<AType>
+ BOOST_TTI_MEMBER_TYPE_GEN(CType)<_>,
+ BOOST_TTI_TRAIT_GEN(MT_BType)<AType>
>
> aVar;
@@ -24,50 +24,50 @@
BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- boost::tti::HT_Str<_>,
- boost::tti::member_type_AStructType<AType>
+ BOOST_TTI_TRAIT_GEN(HT_Str)<_>,
+ BOOST_TTI_MEMBER_TYPE_GEN(AStructType)<AType>
>
));
BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- boost::tti::has_template_check_params_AnotherMemberTemplate<_>,
+ BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS_GEN(AnotherMemberTemplate)<_>,
boost::mpl::identity<AType>
>
));
BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- boost::tti::has_template_check_params_CTManyParameters<_>,
+ BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS_GEN(CTManyParameters)<_>,
boost::tti::mf_member_type
<
- boost::tti::mtfc_member_type_CType,
- boost::tti::MT_BType<AType>
+ BOOST_TTI_MTFC_MEMBER_TYPE_GEN(CType),
+ BOOST_TTI_TRAIT_GEN(MT_BType)<AType>
>
>
));
BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- boost::tti::MF_HT_Str,
- boost::tti::member_type_AStructType<AType>
+ BOOST_TTI_TRAIT_GEN(MF_HT_Str),
+ BOOST_TTI_MEMBER_TYPE_GEN(AStructType)<AType>
>
));
BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- boost::tti::mtfc_has_template_check_params_AnotherMemberTemplate,
+ BOOST_TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS_GEN(AnotherMemberTemplate),
boost::mpl::identity<AType>
>
));
BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- boost::tti::mtfc_has_template_check_params_CTManyParameters,
+ BOOST_TTI_VM_MTFC_HAS_TEMPLATE_CHECK_PARAMS_GEN(CTManyParameters),
boost::tti::mf_member_type
<
- boost::tti::member_type_CType<_>,
- boost::tti::MT_BType<AType>
+ BOOST_TTI_MEMBER_TYPE_GEN(CType)<_>,
+ BOOST_TTI_TRAIT_GEN(MT_BType)<AType>
>
>
));
Modified: sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_fail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_fail.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_fail.cpp 2011-03-10 10:03:10 EST (Thu, 10 Mar 2011)
@@ -12,11 +12,11 @@
BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- boost::tti::has_template_check_params_TemplateNotExist<_>,
+ BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS_GEN(TemplateNotExist)<_>,
boost::tti::mf_member_type
<
- boost::tti::member_type_CType<_>,
- boost::tti::MT_BType<AType>
+ BOOST_TTI_MEMBER_TYPE_GEN(CType)<_>,
+ BOOST_TTI_TRAIT_GEN(MT_BType)<AType>
>
>
));
Modified: sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_fail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_fail2.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_fail2.cpp 2011-03-10 10:03:10 EST (Thu, 10 Mar 2011)
@@ -12,10 +12,10 @@
BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- boost::tti::has_template_check_params_CTManyParameters<_>,
+ BOOST_TTI_VM_HAS_TEMPLATE_CHECK_PARAMS_GEN(CTManyParameters)<_>,
boost::tti::mf_member_type
<
- boost::tti::member_type_CType<_>,
+ BOOST_TTI_MEMBER_TYPE_GEN(CType)<_>,
boost::mpl::identity<AType>
>
>
Modified: sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_fail3.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_fail3.cpp (original)
+++ sandbox/tti/libs/tti/test/test_vm_mf_has_template_cp_fail3.cpp 2011-03-10 10:03:10 EST (Thu, 10 Mar 2011)
@@ -12,7 +12,7 @@
BOOST_MPL_ASSERT((boost::tti::mf_has_template_check_params
<
- boost::tti::WrongParametersForMP<_>,
+ BOOST_TTI_TRAIT_GEN(WrongParametersForMP)<_>,
boost::mpl::identity<AnotherType>
>
));
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