Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64615 - sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing
From: bbartmanboost_at_[hidden]
Date: 2010-08-05 09:49:02


Author: bbartman
Date: 2010-08-05 09:49:01 EDT (Thu, 05 Aug 2010)
New Revision: 64615
URL: http://svn.boost.org/trac/boost/changeset/64615

Log:
working on implementing my bitfield_vector which is proving to be slightly more difficult then anticipated
Text files modified:
   sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/proxy_reference_test.cpp | 23 ++++++++++++++++++++---
   1 files changed, 20 insertions(+), 3 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/proxy_reference_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/proxy_reference_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bitfield_vector_testing/proxy_reference_test.cpp 2010-08-05 09:49:01 EDT (Thu, 05 Aug 2010)
@@ -124,12 +124,29 @@
         std::cout << "Test type 1. First byte value in hex: " << std::endl;
         std::cout << std::hex << std::size_t(*ptr) << std::endl;
 
- // this will be access to the first element within the array.
+ // first within the first index.
         test_type_1 t1(ptr,0);
+ std::cout << "fist use of t1" << std::endl;
         test_type_1::value_type x = t1;
- std::cout << "Value returned by t1: "<< std::hex << x << std::endl;
+ // std::cout << "Value returned by t1: "<< std::hex << x << std::endl;
+
         BOOST_TEST(x == 0x7);
- test_type_1 t1(ptr,0);
+
+
+
+ // now trying second index.
+ test_type_1 t2(ptr,3);
+ std::cout << "fist use of t2" << std::endl;
+ BOOST_TEST(t2 == 0);
+ *ptr |= 0x1c;
+ std::cout << "Test type 1. First byte value in hex for test 2: " << std::endl;
+ std::cout << std::hex << std::size_t(*ptr) << std::endl;
+ std::cout << "second use of t2" << std::endl;
+ std::cout << "Value returned by t2: "<< std::hex << t2 << std::endl;
+ std::cout << "third use of t2" << std::endl;
+ BOOST_TEST(t2 == 6);
+
+
     }
     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