Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64443 - in sandbox/SOC/2010/bit_masks: . lib/integer/test/bft_testing
From: bbartmanboost_at_[hidden]
Date: 2010-07-29 10:20:33


Author: bbartman
Date: 2010-07-29 10:20:29 EDT (Thu, 29 Jul 2010)
New Revision: 64443
URL: http://svn.boost.org/trac/boost/changeset/64443

Log:
created another test suite for bitfield_tuple
Text files modified:
   sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/clz_ctz_test.cpp | 14 +++++++-------
   sandbox/SOC/2010/bit_masks/notes.txt | 12 +++---------
   2 files changed, 10 insertions(+), 16 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/clz_ctz_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/clz_ctz_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/clz_ctz_test.cpp 2010-07-29 10:20:29 EDT (Thu, 29 Jul 2010)
@@ -14,22 +14,22 @@
 
 typedef bits_mask< int, 2, bit_width<int>::value - 4> mask_1;
 typedef bits_mask< int, 4, bit_width<int>::value - 4> mask_2;
-typedef bits_mask< int, 0, bit_width<int>::value - 4> mask_2;
+typedef bits_mask< int, 0, bit_width<int>::value - 4> mask_3;
 int main() {
     // count leading zeros' test
     {
         // count_leading_zeros
- BOOST_TEST( count_leading_zeros<mask_1>::value == 2);
- BOOST_TEST( count_leading_zeros<mask_2>::value == 0);
- BOOST_TEST( count_leading_zeros<mask_3>::value == 4);
+ BOOST_TEST( count_leading_zeros<mask_1>::type::value == 2);
+ BOOST_TEST( count_leading_zeros<mask_2>::type::value == 0);
+ BOOST_TEST( count_leading_zeros<mask_3>::type::value == 4);
     }
 
     // count trailing zeros' test
     {
         // count_trailing_zeros
- BOOST_TEST( count_trailing_zeros<mask_1>::value == 2);
- BOOST_TEST( count_trailing_zeros<mask_2>::value == 4);
- BOOST_TEST( count_trailing_zeros<mask_3>::value == 0);
+ BOOST_TEST( count_trailing_zeros<mask_1>::type::value == 2);
+ BOOST_TEST( count_trailing_zeros<mask_2>::type::value == 4);
+ BOOST_TEST( count_trailing_zeros<mask_3>::type::value == 0);
 
     }
     return boost::report_errors();

Modified: sandbox/SOC/2010/bit_masks/notes.txt
==============================================================================
--- sandbox/SOC/2010/bit_masks/notes.txt (original)
+++ sandbox/SOC/2010/bit_masks/notes.txt 2010-07-29 10:20:29 EDT (Thu, 29 Jul 2010)
@@ -45,10 +45,7 @@
                                 Test File Review
 --------------------------------------------------------------------------------
 1) variadic_sequence_testing.cpp
-
-
-
-
+3) template_expansion_marco_test.cpp
 4) reference_builder_test.cpp
 *) interface_meta_function_test.cpp
 5) pointer_parsing_meta_function_test.cpp
@@ -65,15 +62,12 @@
 19) align_test.cpp
 
 
-3) template_expansion_marco_test.cpp
- a) Make this an actual test to make sure that everything is correctly
- getting expanded.
- b) Find a better way to test this.
- d) Change to using the <boost/detail/lightweight_test.hpp> framework.
+
 
 9) make_bft_testing.cpp
     c) This may need additional test to make sure that the macros are correctly
         generating the code for the correct number of valid parameters.
+
 17) custom_member_test.cpp
     b) Implement test suite.
 


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