Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68127 - sandbox/icl/libs/icl/test/test_casual_
From: afojgo_at_[hidden]
Date: 2011-01-13 17:06:54


Author: jofaber
Date: 2011-01-13 17:06:50 EST (Thu, 13 Jan 2011)
New Revision: 68127
URL: http://svn.boost.org/trac/boost/changeset/68127

Log:
Cleaned up test_casual.cpp
Text files modified:
   sandbox/icl/libs/icl/test/test_casual_/test_casual.cpp | 53 ----------------------------------------
   1 files changed, 0 insertions(+), 53 deletions(-)

Modified: sandbox/icl/libs/icl/test/test_casual_/test_casual.cpp
==============================================================================
--- sandbox/icl/libs/icl/test/test_casual_/test_casual.cpp (original)
+++ sandbox/icl/libs/icl/test/test_casual_/test_casual.cpp 2011-01-13 17:06:50 EST (Thu, 13 Jan 2011)
@@ -23,9 +23,6 @@
 #include <boost/icl/interval_map.hpp>
 #include <boost/icl/interval.hpp>
 
-#include <boost/icl_xt/inter_bitset.hpp>
-
-
 using namespace std;
 using namespace boost;
 using namespace unit_test;
@@ -33,53 +30,6 @@
 using namespace boost::posix_time;
 using namespace boost::gregorian;
 
-void time_test()
-{
- ptime t_a = time_from_string("2010-12-24 19:30");
- ptime t_b = time_from_string("2010-12-24 20:30");
- time_duration a_2_b = t_b - t_a;
- cout << "Duration of [" << t_a << "," << t_b << ") = "
- << a_2_b << endl;
-
- interval<ptime>::type a_b
- = interval<ptime>::right_open(t_a, t_b);
- cout << "Duration of " << a_b << " = "
- << icl::size(a_b) << endl;
-
- icl::size(a_b);
-
- time_duration half = a_2_b / 2;
- ptime t_m = t_a + half;
-
- cout << a_b << (icl::contains(a_b, t_m) ?
- " contains " : "does not contain ")
- << t_m << endl;
-
- ptime day_begin = time_from_string("2010-12-24 00:00");
- time_duration d_a = t_a - day_begin;
- time_duration d_b = t_b - day_begin;
- time_duration d_m = d_b - d_a;
-
- interval<time_duration>::type rel_a_b
- = interval<time_duration>::right_open(d_a, d_b);
-
- time_duration sz_a_b_1 = d_b - d_a;
- time_duration sz_a_b_2 = icl::size(rel_a_b);
- cout << "b-a = " << sz_a_b_1 << endl;
- cout << "size([a,b)) = " << sz_a_b_2 << endl;
- cout << "size([a,b)) = " << (icl::size(rel_a_b)) << endl;
-
- cout << rel_a_b << " " << (icl::size(rel_a_b)) << endl;
-}
-
-void test_inter_bitset()
-{
- inter_bitset<int> inbis;
-
- interval<int>::type itv = interval<int>::right_open(0,2);
- inbis.add(itv);
-}
-
 BOOST_AUTO_TEST_CASE(casual)
 {
     typedef int T;
@@ -88,9 +38,6 @@
     typedef interval_set<T> IntervalSetT;
     typedef IntervalMapT::interval_type IntervalT;
 
- // time_test();
- test_inter_bitset();
-
     BOOST_CHECK_EQUAL(true, true);
 }
 


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