Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53979 - sandbox/monotonic/libs/monotonic/test
From: christian.schladetsch_at_[hidden]
Date: 2009-06-16 04:38:20


Author: cschladetsch
Date: 2009-06-16 04:38:19 EDT (Tue, 16 Jun 2009)
New Revision: 53979
URL: http://svn.boost.org/trac/boost/changeset/53979

Log:
re-introduced test for allocation size of a vector

Text files modified:
   sandbox/monotonic/libs/monotonic/test/basic_tests.cpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/monotonic/libs/monotonic/test/basic_tests.cpp
==============================================================================
--- sandbox/monotonic/libs/monotonic/test/basic_tests.cpp (original)
+++ sandbox/monotonic/libs/monotonic/test/basic_tests.cpp 2009-06-16 04:38:19 EDT (Tue, 16 Jun 2009)
@@ -113,12 +113,12 @@
                 v1.push_back(i);
 
         vector<int, monotonic::allocator<int> > copy(storage);
- size_t len = storage.fixed_remaining();
+ size_t len = storage.used();
         copy = v1;
- size_t len2 = storage.fixed_remaining();
+ size_t len2 = storage.used();
 
         BOOST_CHECK(copy == v1);
- BOOST_CHECK(len - len2 == 100*sizeof(int));
+ BOOST_CHECK(len2 - len == 100*sizeof(int));
 
         // create a list that uses inline, monotonically-increasing storage
         list<int, monotonic::allocator<int> > list(storage);


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