|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54268 - sandbox/monotonic/libs/monotonic/test/Tests
From: christian.schladetsch_at_[hidden]
Date: 2009-06-23 02:45:31
Author: cschladetsch
Date: 2009-06-23 02:45:30 EDT (Tue, 23 Jun 2009)
New Revision: 54268
URL: http://svn.boost.org/trac/boost/changeset/54268
Log:
added more tests suites
Text files modified:
sandbox/monotonic/libs/monotonic/test/Tests/tests.cpp | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
Modified: sandbox/monotonic/libs/monotonic/test/Tests/tests.cpp
==============================================================================
--- sandbox/monotonic/libs/monotonic/test/Tests/tests.cpp (original)
+++ sandbox/monotonic/libs/monotonic/test/Tests/tests.cpp 2009-06-23 02:45:30 EDT (Tue, 23 Jun 2009)
@@ -25,7 +25,18 @@
BOOST_AUTO_TEST_CASE(test_local)
{
-
+ monotonic::local<region0> storage0;
+ monotonic::local<region1> storage1;
+ {
+ std::list<int, monotonic::allocator<int, region0> > list0;
+ std::list<int, monotonic::allocator<int, region1> > list1;
+ fill_n(back_inserter(list0), 100, 42);
+ fill_n(back_inserter(list1), 100, 42);
+
+ std::string<char, std::char_traits<char>, monotonic::allocator<char, region0> > string("foo");
+ string += "bar";
+ BOOST_ASSERT(string == "foobar");
+ }
}
BOOST_AUTO_TEST_CASE(test_shared_allocation)
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