|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64660 - sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing
From: bbartmanboost_at_[hidden]
Date: 2010-08-07 10:15:17
Author: bbartman
Date: 2010-08-07 10:15:16 EDT (Sat, 07 Aug 2010)
New Revision: 64660
URL: http://svn.boost.org/trac/boost/changeset/64660
Log:
test suite for determine_vaild_offsets meta function completeD
Text files modified:
sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/mask_creator_test.cpp | 24 ++++++++++++++++++++++--
1 files changed, 22 insertions(+), 2 deletions(-)
Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/mask_creator_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/mask_creator_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/mask_creator_test.cpp 2010-08-07 10:15:16 EDT (Sat, 07 Aug 2010)
@@ -53,7 +53,7 @@
BOOST_TEST(( mpl::has_key<t1,mpl::size_t<6> >::type::value ));
BOOST_TEST(( mpl::has_key<t1,mpl::size_t<7> >::type::value ));
- typedef determine_vaild_offsets<4>::type t2;
+ typedef determine_vaild_offsets<4>::type t2;
BOOST_TEST(( mpl::has_key<t2,mpl::size_t<0> >::type::value ));
BOOST_TEST(( !mpl::has_key<t2,mpl::size_t<1> >::type::value ));
BOOST_TEST(( !mpl::has_key<t2,mpl::size_t<2> >::type::value ));
@@ -61,9 +61,29 @@
BOOST_TEST(( mpl::has_key<t2,mpl::size_t<4> >::type::value ));
BOOST_TEST(( !mpl::has_key<t2,mpl::size_t<5> >::type::value ));
BOOST_TEST(( !mpl::has_key<t2,mpl::size_t<6> >::type::value ));
- BOOST_TEST(( !mpl::has_key<t2,mpl::size_t<7> >::type::value ));
+ BOOST_TEST(( !mpl::has_key<t2,mpl::size_t<7> >::type::value ));
+ typedef determine_vaild_offsets<50>::type t3;
+ BOOST_TEST(( mpl::has_key<t3,mpl::size_t<0> >::type::value ));
+ BOOST_TEST(( !mpl::has_key<t3,mpl::size_t<1> >::type::value ));
+ BOOST_TEST(( mpl::has_key<t3,mpl::size_t<2> >::type::value ));
+ BOOST_TEST(( !mpl::has_key<t3,mpl::size_t<3> >::type::value ));
+ BOOST_TEST(( mpl::has_key<t3,mpl::size_t<4> >::type::value ));
+ BOOST_TEST(( !mpl::has_key<t3,mpl::size_t<5> >::type::value ));
+ BOOST_TEST(( mpl::has_key<t3,mpl::size_t<6> >::type::value ));
+ BOOST_TEST(( !mpl::has_key<t3,mpl::size_t<7> >::type::value ));
+
+ typedef determine_vaild_offsets<11>::type t4;
+ BOOST_TEST(( mpl::has_key<t4,mpl::size_t<0> >::type::value ));
+ BOOST_TEST(( mpl::has_key<t4,mpl::size_t<1> >::type::value ));
+ BOOST_TEST(( mpl::has_key<t4,mpl::size_t<2> >::type::value ));
+ BOOST_TEST(( mpl::has_key<t4,mpl::size_t<3> >::type::value ));
+ BOOST_TEST(( mpl::has_key<t4,mpl::size_t<4> >::type::value ));
+ BOOST_TEST(( mpl::has_key<t4,mpl::size_t<5> >::type::value ));
+ BOOST_TEST(( mpl::has_key<t4,mpl::size_t<6> >::type::value ));
+ BOOST_TEST(( mpl::has_key<t4,mpl::size_t<7> >::type::value ));
+
}
return boost::report_errors();
}
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