|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64399 - sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing
From: bbartmanboost_at_[hidden]
Date: 2010-07-27 15:58:29
Author: bbartman
Date: 2010-07-27 15:58:29 EDT (Tue, 27 Jul 2010)
New Revision: 64399
URL: http://svn.boost.org/trac/boost/changeset/64399
Log:
updating test suites for reference creation helper types
Text files modified:
sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/reference_builder_test.cpp | 22 +++++++++++++++++++---
1 files changed, 19 insertions(+), 3 deletions(-)
Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/reference_builder_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/reference_builder_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/reference_builder_test.cpp 2010-07-27 15:58:29 EDT (Tue, 27 Jul 2010)
@@ -5,7 +5,7 @@
#include <boost/integer/bitfield_tuple.hpp>
-#include <boost/assert.hpp>
+#include <boost/detail/lightweight_test.hpp>
using namespace boost;
@@ -38,13 +38,29 @@
test_tuple_1,
salmon
>::type ref_t_2;
+
+ typedef bitfields::detail::enable_if_proxy_reference_type_by_index<
+ test_tuple_1,
+ 0
+ >::type ref_t_3;
+ typedef bitfields::detail::enable_if_proxy_reference_type_by_index<
+ const test_tuple_1,
+ 0
+ >::type ref_t_4;
+ // test_tuple_1
+ ref_t_3 non_const_ref_3(store_house);
+
ref_t_2 non_const_ref(store_house);
non_const_ref = 3;
ref_t_1 const_ref(store_house);
- BOOST_ASSERT(( const_ref == 3));
+ BOOST_TEST( const_ref == 3);
+
+ non_const_ref_3 = 4;
+ ref_t_3 const_ref_t_4(store_house);
+ BOOST_TEST( const_ref_t_4 == 4 );
}
- return 0;
+ 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