Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76245 - in branches/release/libs/icl: . doc doc/html doc/html/header/boost/icl test test/test_casual_ test/test_doc_code_
From: afojgo_at_[hidden]
Date: 2011-12-31 06:43:40


Author: jofaber
Date: 2011-12-31 06:43:39 EST (Sat, 31 Dec 2011)
New Revision: 76245
URL: http://svn.boost.org/trac/boost/changeset/76245

Log:
Merged revision [76235]. Added move semantics for binary operators.
Properties modified:
   branches/release/libs/icl/ (props changed)
   branches/release/libs/icl/doc/ (props changed)
   branches/release/libs/icl/doc/html/ (props changed)
   branches/release/libs/icl/doc/html/header/boost/icl/ (props changed)
   branches/release/libs/icl/test/ (props changed)
   branches/release/libs/icl/test/test_doc_code_/ (props changed)
Text files modified:
   branches/release/libs/icl/test/test_casual_/test_casual.cpp | 52 ++-------------------------------------
   branches/release/libs/icl/test/vc10_icl_fast_tests.sln | 6 ++++
   2 files changed, 9 insertions(+), 49 deletions(-)

Modified: branches/release/libs/icl/test/test_casual_/test_casual.cpp
==============================================================================
--- branches/release/libs/icl/test/test_casual_/test_casual.cpp (original)
+++ branches/release/libs/icl/test/test_casual_/test_casual.cpp 2011-12-31 06:43:39 EST (Sat, 31 Dec 2011)
@@ -39,17 +39,6 @@
 using namespace unit_test;
 using namespace boost::icl;
 
-void pass_it(shared_ptr<int> pi)
-{
- *pi = 41;
- cout << "uses: " << pi.use_count() << " cont: " << *pi << endl;
-}
-
-void pass_it_ref(shared_ptr<int>& pi)
-{
- *pi = 43;
- cout << "uses: " << pi.use_count() << " cont: " << *pi << endl;
-}
 
 BOOST_AUTO_TEST_CASE(casual)
 {
@@ -59,45 +48,10 @@
     typedef interval_set<T> IntervalSetT;
     typedef IntervalMapT::interval_type IntervalT;
 
- shared_ptr<int> pi(new int(42));
- cout << "uses: " << pi.use_count() << " cont: " << *pi << endl;
- pass_it(pi);
- pass_it_ref(pi);
-
- BOOST_CHECK_EQUAL(true, true);
-}
-
-/*
-BOOST_AUTO_TEST_CASE(isEmptyTest)
-{
- typedef int Value;
- typedef boost::icl::interval<Value> Interval;
- typedef std::numeric_limits<Value> Limits;
-
- Value const max(Limits::max());
+ IntervalSetT is = IntervalSetT(I_I(1,1)) + IntervalSetT(I_I(3,3));
 
- Interval::interval_type piff = Interval::open(max, max);
+ cout << is << endl;
 
- BOOST_CHECK(!icl::is_empty(Interval::open(max - 2, max)));
- BOOST_CHECK( icl::is_empty(Interval::open(max - 1, max)));
- BOOST_CHECK( icl::is_empty(Interval::open(max, max)));
+ BOOST_CHECK_EQUAL(true, true);
 }
-*/
-
-BOOST_AUTO_TEST_CASE(totalRangeTest)
-{
- typedef int Value;
- typedef boost::icl::interval<Value> Interval;
- typedef std::numeric_limits<Value> Limits;
- typedef boost::icl::interval_map<Value, int, boost::icl::total_enricher> Container;
 
- Value const min(Limits::min());
- Value const max(Limits::max());
-
- boost::icl::interval_map<Value, int, boost::icl::total_enricher> intervals;
-
- intervals += std::make_pair(Interval::closed(min, max), 0);
- intervals += std::make_pair(Interval::right_open(0, 10), 3);
-
- BOOST_CHECK_EQUAL(intervals.iterative_size(), 3);
-}

Modified: branches/release/libs/icl/test/vc10_icl_fast_tests.sln
==============================================================================
--- branches/release/libs/icl/test/vc10_icl_fast_tests.sln (original)
+++ branches/release/libs/icl/test/vc10_icl_fast_tests.sln 2011-12-31 06:43:39 EST (Sat, 31 Dec 2011)
@@ -65,6 +65,8 @@
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vc10_test_type_traits", "test_type_traits_\vc10_test_type_traits.vcxproj", "{EE61B7EF-EC45-4165-8B59-FD5B8D6A9FA0}"
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vc10_test_casual", "test_casual_\vc10_test_casual.vcxproj", "{EE61B7EF-EC45-4165-8B59-FD5B8D3A9FA0}"
+EndProject
 Global
         GlobalSection(SolutionConfigurationPlatforms) = preSolution
                 Debug|Win32 = Debug|Win32
@@ -199,6 +201,10 @@
                 {EE61B7EF-EC45-4165-8B59-FD5B8D6A9FA0}.Debug|Win32.Build.0 = Debug|Win32
                 {EE61B7EF-EC45-4165-8B59-FD5B8D6A9FA0}.Release|Win32.ActiveCfg = Release|Win32
                 {EE61B7EF-EC45-4165-8B59-FD5B8D6A9FA0}.Release|Win32.Build.0 = Release|Win32
+ {EE61B7EF-EC45-4165-8B59-FD5B8D3A9FA0}.Debug|Win32.ActiveCfg = Debug|Win32
+ {EE61B7EF-EC45-4165-8B59-FD5B8D3A9FA0}.Debug|Win32.Build.0 = Debug|Win32
+ {EE61B7EF-EC45-4165-8B59-FD5B8D3A9FA0}.Release|Win32.ActiveCfg = Release|Win32
+ {EE61B7EF-EC45-4165-8B59-FD5B8D3A9FA0}.Release|Win32.Build.0 = Release|Win32
         EndGlobalSection
         GlobalSection(SolutionProperties) = preSolution
                 HideSolutionNode = FALSE


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