Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62113 - sandbox/conversion/libs/conversion/test
From: vicente.botet_at_[hidden]
Date: 2010-05-20 11:08:14


Author: viboes
Date: 2010-05-20 11:08:12 EDT (Thu, 20 May 2010)
New Revision: 62113
URL: http://svn.boost.org/trac/boost/changeset/62113

Log:
Boost.Conversion 0.2:
* Adapt to Jamfile included under Boost_ROOT
* Modify test on intervals that can not be empty

Text files modified:
   sandbox/conversion/libs/conversion/test/Jamfile.v2 | 10 ++++++----
   sandbox/conversion/libs/conversion/test/interval.cpp | 14 +++++++-------
   2 files changed, 13 insertions(+), 11 deletions(-)

Modified: sandbox/conversion/libs/conversion/test/Jamfile.v2
==============================================================================
--- sandbox/conversion/libs/conversion/test/Jamfile.v2 (original)
+++ sandbox/conversion/libs/conversion/test/Jamfile.v2 2010-05-20 11:08:12 EDT (Thu, 20 May 2010)
@@ -18,19 +18,21 @@
 project :
     : requirements
 # <include>$BOOST_ROOT
- <include>../../..
- <include>../../../../chrono
+# <include>../../..
+# <include>../../../../chrono
 
 # <threading>multi
 # <target-os>cygwin
         #<threadapi>pthread
 # <variant>debug
 
+ <library>/boost/system//boost_system
+ <library>/boost/chrono//boost_chrono
+
         #<library>/boost/thread//boost_thread/<link>static
- <library>/sandbox/chrono/libs/chrono/build//boost_chrono/<link>static
- <library>/boost/system//boost_system/<link>static
 
         <library>/boost/test//boost_unit_test_framework/<link>static
+ #<library>/boost/test//boost_unit_test_framework
 
 ;
 

Modified: sandbox/conversion/libs/conversion/test/interval.cpp
==============================================================================
--- sandbox/conversion/libs/conversion/test/interval.cpp (original)
+++ sandbox/conversion/libs/conversion/test/interval.cpp 2010-05-20 11:08:12 EDT (Thu, 20 May 2010)
@@ -20,19 +20,19 @@
 typedef short B1;
 
 void explicit_convert_to() {
- B1 b1;
- B1 b2;
- boost::numeric::interval<B1> b;
+ B1 b1(1);
+ B1 b2(3);
+ boost::numeric::interval<B1> b(1,5);
     boost::numeric::interval<A1> a1(boost::convert_to<boost::numeric::interval<A1> >(b));
     boost::numeric::interval<A1> a2(boost::convert_to<boost::numeric::interval<A1> >(
                 boost::numeric::interval<B1>(b1,b2)));
 
 }
 void explicit_assign_to() {
- B1 b1;
- B1 b2;
- boost::numeric::interval<A1> a;
- boost::numeric::interval<B1> b;
+ B1 b1(1);
+ B1 b2(3);
+ boost::numeric::interval<A1> a(1,4);
+ boost::numeric::interval<B1> b(1,4);
     boost::assign_to(a,b);
     boost::assign_to(a,boost::numeric::interval<B1>(b1,b2));
 }


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