$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r61992 - sandbox/SOC/2010/bit_masks/lib/integer/test
From: bbartmanboost_at_[hidden]
Date: 2010-05-15 09:13:38
Author: bbartman
Date: 2010-05-15 09:13:38 EDT (Sat, 15 May 2010)
New Revision: 61992
URL: http://svn.boost.org/trac/boost/changeset/61992
Log:
working on devising the best way to test everything at once and that seems to be to use for_each and mpl::list
Added:
   sandbox/SOC/2010/bit_masks/lib/integer/test/test_type_list.hpp   (contents, props changed)
Text files modified: 
   sandbox/SOC/2010/bit_masks/lib/integer/test/low_bit_mask_test.cpp |     9 +++++----                               
   1 files changed, 5 insertions(+), 4 deletions(-)
Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/low_bit_mask_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/low_bit_mask_test.cpp	(original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/low_bit_mask_test.cpp	2010-05-15 09:13:38 EDT (Sat, 15 May 2010)
@@ -3,7 +3,7 @@
 #include <boost/mpl/for_each.hpp>
 
 
-
+#include <boost/detail/lightweight_test.hpp>  // for main, BOOST_TEST
 #include <boost/assert.hpp>
 #include <boost/type_traits.hpp>
 #include <boost/integer/high_low_bits.hpp>
@@ -70,6 +70,7 @@
                             int,
                             unsigned int
 #if 0
+                            ,
                             long long,
                             unsigned long long
 #endif
@@ -80,14 +81,14 @@
 void test_function() {
 
     // making sure that the value type is transfered correctly.
-    BOOST_ASSERT((is_same< typename low_bits<T, 3>::value_type, T >::value));
+    BOOST_TEST((is_same< typename low_bits<T, 3>::value_type, T >::value));
 
     // assert that mask is correct.
     // T r = typename ;
-    BOOST_ASSERT(( boost::low_bits<T,3>::value ));
+    BOOST_TEST(( boost::low_bits<T,3>::value ));
 
     // assert that type returns the correct typedef.
-    BOOST_ASSERT(( is_same< typename low_bits<T, 3>::type, low_bits<T, 3> >::value ));
+    BOOST_TEST(( is_same< typename low_bits<T, 3>::type, low_bits<T, 3> >::value ));
 
 }
 
Added: sandbox/SOC/2010/bit_masks/lib/integer/test/test_type_list.hpp
==============================================================================